aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-11-17 10:49:58 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-11-17 10:49:58 +0100
commit8a3529541a6758ed6473d41837336b22b4f84406 (patch)
treea280cc6434d7d5eb6455eac489c2e212a8f1367d /vim
parent2a8fc1f049b04a969e4bb73df817303a82925a11 (diff)
downloadvis-8a3529541a6758ed6473d41837336b22b4f84406.tar.gz
vis-8a3529541a6758ed6473d41837336b22b4f84406.tar.xz
test: use :qall! to terminate tests
This should make sure that vis always terminates and never hangs waiting for further input. Lua errors in particular cause a new window/file to be displayed showing a detailed error message. Previously only this internal file was closed but the original file remained open and prevented vis from exiting.
Diffstat (limited to 'vim')
-rwxr-xr-xvim/test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/test.sh b/vim/test.sh
index f031bb4..99a1c94 100755
--- a/vim/test.sh
+++ b/vim/test.sh
@@ -26,7 +26,7 @@ for t in $TESTS; do
printf "Running test %s with %s ... " "$t" "$e"
rm -f "$OUT" "$ERR"
[ "$e" = "$VIM" ] && EDITOR="$VIM -u NONE -U NONE -N -i NONE"
- { cat "$t.keys"; printf "<Escape>:wq! $OUT<Enter>\n"; } | cpp -P 2>/dev/null | sed 's/[ \t]*$//' | ../util/keys | $EDITOR "$t.in" 2> /dev/null
+ { cat "$t.keys"; printf "<Escape>:w! $OUT<Enter>:qall!<Enter>\n"; } | cpp -P 2>/dev/null | sed 's/[ \t]*$//' | ../util/keys | $EDITOR "$t.in" 2> /dev/null
if [ "$e" = "$VIM" ]; then
if [ -e "$REF" ]; then
if cmp -s "$REF" "$OUT"; then