tests: Avoid infinite loop in test.
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 14 Jan 2017 11:22:13 +0000 (12:22 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 14 Jan 2017 11:22:13 +0000 (12:22 +0100)
tests/language/command.at

index ae91558ce14965b19950150da347153a390d8b90..442355dbb63b1b2ba95cd17833ef9713392b79eb 100644 (file)
@@ -18,7 +18,7 @@ dnl read the first token of the next command.
 dnl
 dnl (If this reecurs, the the test will run forever.)
 AT_SETUP([FINISH executes immediately])
-AT_CHECK([(echo "FINISH."; while :; do echo; done) | pspp])
+AT_CHECK([(echo "FINISH."; while echo ; do true; done) | pspp], [0], [ignore], [ignore])
 AT_CLEANUP
 
 AT_BANNER([ERASE])