X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flanguage%2Fstats%2Fexamine.at;h=9bfa9c78ed5f952eeed35076df291924ec81a2d4;hb=42004e91dc5a76f746b9bf902130182318806291;hp=4cd52b9feb9dd4439bdb0235d508d54eee13504f;hpb=20ab4257de9330d8ad358fd8f66ebcd75bd1846a;p=pspp-builds.git diff --git a/tests/language/stats/examine.at b/tests/language/stats/examine.at index 4cd52b9f..9bfa9c78 100644 --- a/tests/language/stats/examine.at +++ b/tests/language/stats/examine.at @@ -514,3 +514,49 @@ warning: Not creating plot because data set is empty. ]) dnl Ignore output -- this is just a no-crash check. AT_CLEANUP + +dnl Test that big input doesn't crash (bug 11307). +AT_SETUP([EXAMINE -- big input doesn't crash]) +AT_DATA([examine.sps], [dnl +INPUT PROGRAM. + LOOP #I=1 TO 50000. + COMPUTE X=NORMAL(10). + END CASE. + END LOOP. + END FILE. +END INPUT PROGRAM. + + +EXAMINE /x + /STATISTICS=DESCRIPTIVES. +]) +AT_CHECK([pspp -o pspp.csv examine.sps]) +dnl Ignore output -- this is just a no-crash check. +AT_CLEANUP + +dnl Another test that big input doesn't crash. +dnl The actual bug that this checks for has been lost. +AT_SETUP([EXAMINE -- big input doesn't crash 2]) +AT_DATA([make-big-input.pl], + [for ($i=0; $i<100000; $i++) { print "AB12\n" }; + for ($i=0; $i<100000; $i++) { print "AB04\n" }; +]) +AT_CHECK([$PERL make-big-input.pl > large.txt]) +AT_DATA([examine.sps], [dnl +DATA LIST FILE='large.txt' /S 1-2 (A) X 3 . + + +AGGREGATE OUTFILE=* /BREAK=X /A=N. + + +EXAMINE /A BY /X. +]) +AT_CHECK([pspp -o pspp.csv examine.sps]) +dnl Ignore output -- this is just a no-crash check. +AT_DATA([more-big-input.pl], + [for ($i=0; $i<25000; $i++) { print "AB04\nAB12\n" }; +]) +AT_CHECK([$PERL more-big-input.pl >> large.txt]) +AT_CHECK([pspp -o pspp.csv examine.sps]) +dnl Ignore output -- this is just a no-crash check. +AT_CLEANUP