1 AT_BANNER([PSPP terminal UI])
3 AT_SETUP([nonexistent syntax file crash])
4 AT_CHECK([pspp nonexistent], [1],
5 [error: Opening `nonexistent': No such file or directory.
9 AT_SETUP([SIGTERM yields clean shutdown])
10 AT_DATA([main.sps], [dnl
21 AT_CHECK([pspp main.sps & sleep 1; kill $!; wait $!], [143], [], [ignore])
24 AT_SETUP([SIGSEGV yields error report])
25 AT_CHECK([[echo 'host command=["kill -SEGV $PPID"].' | pspp -O format=csv]],
29 ******************************************************
30 You have discovered a bug in PSPP. Please report this
31 to $PACKAGE_BUGREPORT. Please include this entire
32 message, *plus* several lines of output just above it.
33 For the best chance at having the bug fixed, also
34 include the syntax file that triggered it and a sample
35 of any data file used for input.
36 proximate cause: Segmentation Violation
39 AT_CHECK([sed '/proximate/q' < stderr], [0], [expout])
43 dnl This tests for a crash which was observed with --syntax
44 AT_SETUP([argument parsing])
46 AT_DATA([main.sps], [dnl
47 ECHO 'This is a test'.
51 AT_CHECK([pspp --syntax=enhanced main.sps], [0], [ignore])