sys-file-reader: Add PSPP version to messages that ask for files.
[pspp] / tests / ui / terminal / main.at
index 1a22f7a0e85825b363dc046257e235b1d0ac556e..128ad4182de1f199ce6beca5fea95d6cc8f2e7a8 100644 (file)
@@ -24,16 +24,30 @@ AT_CLEANUP
 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