added FREQUENCIES regression test for bug#48128
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Wed, 8 Jun 2016 18:22:00 +0000 (20:22 +0200)
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>
Wed, 8 Jun 2016 18:22:00 +0000 (20:22 +0200)
FREQUENCIES command crashed in a combination of /histogram /percentiles
and /statistics option. This was fixed in commit 86642e. Here a crash
test is added exactly for this situation.

tests/language/stats/frequencies.at

index f0d81c321075d4edec21af52a38520acf88fd03a..7c55110c967adc581e852049890f53bf5bb1ed94 100644 (file)
@@ -761,3 +761,27 @@ FREQUENCIES
 AT_CHECK([pspp empty.sps -O format=csv], [0],  [ignore])
 
 AT_CLEANUP
+
+AT_SETUP([FREQUENCIES percentiles + histogram bug#48128])
+AT_DATA([bug.sps], [dnl
+SET FORMAT=F8.0.
+
+INPUT PROGRAM.
+       LOOP I=1 TO 10.
+               COMPUTE SCORE=EXP(NORMAL(1)).
+               END CASE.
+       END LOOP.
+       END FILE.
+END INPUT PROGRAM.
+
+FREQUENCIES VARIABLES=SCORE
+/FORMAT=NOTABLE
+/STATISTICS=ALL
+/PERCENTILES=1 10 20 30 40 50 60 70 80 90 99
+/HISTOGRAM.
+
+])
+
+AT_CHECK([pspp bug.sps], [0],  [ignore])
+
+AT_CLEANUP