Fixed bug in command line parser
[pspp] / tests / ui / terminal / main.at
index 38a88eca14a779174d838d8218ad836f2690c36e..2f682e8d2d6b4ed245096da4e8d651914bbc5571 100644 (file)
@@ -36,3 +36,16 @@ proximate cause:     Segmentation Violation
 ])
 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