Fix crash when ONEWAY/CONTRASTS contained an empty list.
[pspp] / tests / language / stats / roc.at
index 7ffb65228826933e1fd02dd430b563bc83f5eb1d..f8d41ba75d93c417e20ebc0b0c6d1ee8a8c9ff05 100644 (file)
@@ -164,3 +164,22 @@ Area,Std. Error,Asymptotic Sig.,Lower Bound,Upper Bound
 .490,.111,.927,.307,.673
 ])
 AT_CLEANUP
+
+
+
+
+AT_SETUP([ROC crash on no state variable])
+AT_DATA([roc.sps], [dnl
+data list notable list /x * y * w * a *.
+begin data.
+5 5 1  0
+end data.
+
+
+roc x y By(a (1)
+ .
+])
+
+AT_CHECK([pspp -o pspp.csv roc.sps], [1], [ignore])
+
+AT_CLEANUP