Fixed a crash in REGRESSION when there were no non-missing values.
[pspp] / tests / language / stats / regression.at
index 0ea3efc8a256aabf1bbe963e38d1d80cfa818d70..81bbce436a998bc737dea03b8e5d6017ab84500f 100644 (file)
@@ -1590,3 +1590,27 @@ Table: Coefficients
 ,,,,,,
 ])
 AT_CLEANUP
+
+AT_SETUP([REGRESSION no crash on all missing])
+AT_DATA([regcrash.sps], [dnl
+data list list /x * y.
+begin data.
+ . .
+ . .
+ . .
+ . .
+ . .
+ . .
+ . .
+ . .
+ . .
+ . .
+end data.
+
+
+regression /variables=x y /dependent=y.
+])
+
+AT_CHECK([pspp -o pspp.csv regcrash.sps], [1], [ignore], [ignore])
+
+AT_CLEANUP