diff src/testdir/Makefile @ 14889:ba1f0c06b4be v8.1.0456

patch 8.1.0456: running test hangs when the input file is being edited commit https://github.com/vim/vim/commit/d8f27b30d6ec0bcfcb8f44c6201e36c003d1ce88 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 7 15:42:07 2018 +0200 patch 8.1.0456: running test hangs when the input file is being edited Problem: Running test hangs when the input file is being edited. Solution: Use a SwapExists autocommand to ignore editing the test script.
author Bram Moolenaar <Bram@vim.org>
date Sun, 07 Oct 2018 15:45:06 +0200
parents 845180495796
children d94901eeb762
line wrap: on
line diff
--- a/src/testdir/Makefile
+++ b/src/testdir/Makefile
@@ -9,8 +9,10 @@ XXDPROG = ../xxd/xxd
 
 SCRIPTSOURCE = ../../runtime
 
-# Change this to empty to see the verbose output of tests.
-REDIR_TEST_TO_NULL = > /dev/null
+# Comment out this line to see the verbose output of tests.
+#
+# Catches SwapExists to avoid hanging at the ATTENTION prompt.
+REDIR_TEST_TO_NULL = --cmd 'au SwapExists * let v:swapchoice = "e"' > /dev/null
 
 # Uncomment this line to use valgrind for memory leaks and extra warnings.
 #   The output goes into a file "valgrind.testN"