Fixed bug in command line parser
[pspp] / tests / ui / terminal / main.at
index 1a22f7a0e85825b363dc046257e235b1d0ac556e..2f682e8d2d6b4ed245096da4e8d651914bbc5571 100644 (file)
@@ -34,6 +34,18 @@ include the syntax file that triggered it and a sample
 of any data file used for input.
 proximate cause:     Segmentation Violation
 ])
-AT_CHECK([sed -n '/\*\*\*/,$p
-/proximate/q' < stderr], [0], [expout])
+AT_CHECK([sed '/proximate/q' < stderr], [0], [expout])
+AT_CLEANUP
+
+
+dnl This tests for a crash which was observed with --syntax
+AT_SETUP([argument parsing])
+
+AT_DATA([main.sps], [dnl
+ECHO 'This is a test'.
+FINISH.
+])
+
+AT_CHECK([pspp --syntax=enhanced main.sps], [0], [ignore])
+
 AT_CLEANUP