From 8a3529541a6758ed6473d41837336b22b4f84406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 17 Nov 2016 10:49:58 +0100 Subject: 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. --- vim/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vim') 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 ":wq! $OUT\n"; } | cpp -P 2>/dev/null | sed 's/[ \t]*$//' | ../util/keys | $EDITOR "$t.in" 2> /dev/null + { cat "$t.keys"; printf ":w! $OUT:qall!\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 -- cgit v1.2.3