legacy-encoding: Remove.
[pspp-builds.git] / tests / language / command.at
index 029e1b1fb9dab3f97899aca61f8730aac28e3073..aa4eff53511b00a768087ced97357c4ac364b797 100644 (file)
@@ -7,7 +7,7 @@ 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.
 ])
@@ -77,3 +77,14 @@ x
 15.00
 ])
 AT_CLEANUP
+
+AT_BANNER([COMMENT])
+
+dnl Tests for a bug wherein a comment just before end-of-file caused an
+dnl infinite loop.
+AT_SETUP([COMMENT at end of file])
+AT_DATA([comment.sps], [dnl
+COMMENT this is a comment at end of file.
+])
+AT_CHECK([pspp -O format=csv comment.sps])
+AT_CLEANUP