3 # This crashed older versions of PSPP (bug #30682).
4 AT_SETUP([SET FORMAT to invalid output format])
5 AT_DATA([set.pspp], [dnl
6 DATA LIST LIST NOTABLE /x.
15 AT_CHECK([pspp -O format=csv set.pspp], [1], [dnl
16 "set.pspp:7: error: SET: Output format F41.0 specifies width 41, but F requires a width between 1 and 40."
18 Table: Valid cases = 3; cases with missing value(s) = 0.
19 Variable,N,Mean,Std Dev,Minimum,Maximum
20 x,3,2.00,1.00,1.00,3.00
25 dnl This scenario was observed to erroneously free things twice
26 AT_SETUP([SET crash on invalid cc])
27 AT_DATA([set.pspp], [dnl
28 SET CCA='xxxx'.SHGW CCA.
31 AT_CHECK([pspp -O format=csv set.pspp], [1], [ignore])
36 AT_SETUP([SET MXWARNS])
37 dnl Make sure that syntax processing stops and that
38 dnl a warning is issued when the MXWARNS figure is
40 AT_DATA([set.pspp], [dnl
42 data list notable list /x (f8.2) y (f8.2).
53 comment The following line should not be executed.
57 AT_CHECK([pspp -O format=csv set.pspp], [0], [dnl
58 set.pspp:5.3: warning: Data for variable y is not valid as format F: Field contents are not numeric.
60 set.pspp:6.3: warning: Data for variable y is not valid as format F: Field contents are not numeric.
62 set.pspp:7.1: warning: Data for variable x is not valid as format F: Field contents are not numeric.
64 note: Warnings (3) exceed limit (2). Syntax processing will be halted.
72 AT_SETUP([SET MXWARNS special case zero])
73 dnl Make sure that MXWARNS interprets zero as infinity.
74 AT_DATA([mxwarns.pspp], [dnl
76 data list notable list /x (f8.2) y (f8.2) z *.
90 AT_CHECK([pspp -O format=csv mxwarns.pspp], [0],
91 [warning: MXWARNS set to zero. No further warnings will be given even when potentially problematic situations are encountered.
108 AT_BANNER([PRESERVE and RESTORE])
110 AT_SETUP([PRESERVE of SET FORMAT])
111 AT_DATA([set.pspp], [dnl
119 AT_CHECK([pspp -O format=csv set.pspp], [0], [dnl
120 set.pspp:1: note: SHOW: FORMAT is F8.2.
122 set.pspp:5: note: SHOW: FORMAT is F10.0.
124 set.pspp:6: note: SHOW: FORMAT is F8.2.