X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flanguage%2Fcommand.at;h=ae91558ce14965b19950150da347153a390d8b90;hb=9be3ebc378cac9467044f7240b1c42ab1bfe01c2;hp=1bd6ccf2ebc1fc22d4de85bc1c1bb4621945d456;hpb=6714a2d1ded80fc850e8dd9f2a252ab0aecff7d7;p=pspp diff --git a/tests/language/command.at b/tests/language/command.at index 1bd6ccf2eb..ae91558ce1 100644 --- a/tests/language/command.at +++ b/tests/language/command.at @@ -7,12 +7,20 @@ DATA rubbish. EXECUTE. ]) AT_CHECK([pspp -O format=csv command.sps], [1], [dnl -command.sps:1: error: Unknown command DATA RUBBISH. +command.sps:1: error: Unknown command `DATA rubbish'. -command.sps:2: error: EXECUTE: EXECUTE is allowed only after the active file has been defined. +command.sps:2: error: EXECUTE: EXECUTE is allowed only after the active dataset has been defined. ]) 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 :; do echo; done) | pspp]) +AT_CLEANUP + AT_BANNER([ERASE]) AT_SETUP([ERASE -- safer mode])