Reliability: Fix crash on invalid syntax
[pspp] / tests / language / stats / reliability.at
index 5676b9469039b1d0c8ccbad5cf62140a6a90202e..f320d3e6f38246772e474e4e43c3173b541f2d8d 100644 (file)
@@ -247,3 +247,24 @@ Cronbach's Alpha,N of Items
 .75,4
 ])
 AT_CLEANUP
+
+
+dnl This was causing a AT.  
+AT_SETUP([RELIABILITY bad syntax])
+AT_DATA([bad-syntax.sps], [dnl
+data list notable list /x * y *.
+begin data.
+1 10
+2 20
+3 30
+4 50
+5 50
+end data.
+
+* This syntax is incorrect
+reliability x y.
+])
+
+AT_CHECK([pspp -O format=csv bad-syntax.sps], [1], [ignore])
+
+AT_CLEANUP