X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flanguage%2Fstats%2Fcorrelations.at;fp=tests%2Flanguage%2Fstats%2Fcorrelations.at;h=1de7eed195f11c4a8ff2291f3dbd9e311c60e655;hb=7741e39c8dd2ca7b6a5c68c7af74ca0507690644;hp=b2fd22f823c3b19ed7991f46b21df81ef8fda277;hpb=6276f76974fc271d325e9756357618c384a33b82;p=pspp diff --git a/tests/language/stats/correlations.at b/tests/language/stats/correlations.at index b2fd22f823..1de7eed195 100644 --- a/tests/language/stats/correlations.at +++ b/tests/language/stats/correlations.at @@ -361,3 +361,28 @@ CORRELATIONS 'VARIABLES = a b.] AT_CHECK([pspp -o pspp.csv correlations.sps], [1], [ignore]) AT_CLEANUP + +dnl Another Crash found by zzuf +AT_SETUP([CORRELATIONS -- empty dataset 2]) + +AT_DATA([correlations.sps], [dnl +data list notable list /foo * bar * wiz bang *. +begin data. + 1 00 3 . + 3 9 -50 . +98 78 104 . + . 4 4 . + 5 3 0 . +end data. + +correlations + variables = foo bar wiz bang + /missing = listwise + . +]) + +AT_CHECK([pspp -O format=csv correlations.sps], [1], [dnl +correlations.sps:13: error: CORRELATIONS: The data for the chosen variables are all missing or empty. +]) + +AT_CLEANUP