X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flanguage%2Fcommand.at;h=442355dbb63b1b2ba95cd17833ef9713392b79eb;hb=da01baa7c5ac97ee0b23db58585b50c587f12957;hp=8d65b6fb8c2998bd14a27ee8d5f4d9f9b2174587;hpb=fe8dc2171009e90d2335f159d05f7e6660e24780;p=pspp diff --git a/tests/language/command.at b/tests/language/command.at index 8d65b6fb8c..442355dbb6 100644 --- a/tests/language/command.at +++ b/tests/language/command.at @@ -13,6 +13,14 @@ command.sps:2: error: EXECUTE: EXECUTE is allowed only after the active dataset ]) AT_CLEANUP +dnl Tests for a bug where FINISH or EXIT wasn't executed until the lexer +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 echo ; do true; done) | pspp], [0], [ignore], [ignore]) +AT_CLEANUP + AT_BANNER([ERASE]) AT_SETUP([ERASE -- safer mode])