AT_SETUP([SIGSEGV yields error report])
AT_CHECK([[echo 'host command=["kill -SEGV $PPID"].' | pspp -O format=csv]],
[139], [], [stderr])
-AT_DATA([expout], [dnl
+
+cat > expout <<EOF
******************************************************
You have discovered a bug in PSPP. Please report this
-to bug-gnu-pspp@gnu.org. Please include this entire
+to $PACKAGE_BUGREPORT. Please include this entire
message, *plus* several lines of output just above it.
For the best chance at having the bug fixed, also
include the syntax file that triggered it and a sample
of any data file used for input.
proximate cause: Segmentation Violation
+EOF
+
+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([sed -n '/\*\*\*/,$p
-/proximate/q' < stderr], [0], [expout])
+
+AT_CHECK([pspp --syntax=enhanced main.sps], [0], [ignore])
+
AT_CLEANUP