summaryrefslogtreecommitdiffstats
path: root/src/testdir/Makefile
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-10-07 15:42:07 +0200
committerBram Moolenaar <Bram@vim.org>2018-10-07 15:42:07 +0200
commitd8f27b30d6ec0bcfcb8f44c6201e36c003d1ce88 (patch)
tree46aded7ced84e056d69f378133d8c50ee5f5491b /src/testdir/Makefile
parent019dfe6855e011c02427bb922aafeae0245372c9 (diff)
patch 8.1.0456: running test hangs when the input file is being editedv8.1.0456
Problem: Running test hangs when the input file is being edited. Solution: Use a SwapExists autocommand to ignore editing the test script.
Diffstat (limited to 'src/testdir/Makefile')
-rw-r--r--src/testdir/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testdir/Makefile b/src/testdir/Makefile
index 6a9ef0f974..e9e0f4b320 100644
--- 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"