Fix crash in correlations with empty dataset.
[pspp] / tests / language / stats / correlations.at
index 24fb63c6a69c975215a3c721323cb5bf2da51301..b2fd22f823c3b19ed7991f46b21df81ef8fda277 100644 (file)
@@ -348,3 +348,16 @@ var5,Pearson Correlation,-.0519,-.0407
 ])
 
 AT_CLEANUP
+
+
+dnl Crash found by zzuf
+AT_SETUP([CORRELATIONS -- empty dataset])
+
+AT_DATA([correlations.sps], [dnl
+data list list /a b c q g *.
+CORRELATIONS 'VARIABLES = a b.]
+)
+
+AT_CHECK([pspp -o pspp.csv correlations.sps], [1], [ignore])
+
+AT_CLEANUP