MEANS: Prevent parser from entering infinite loop.
[pspp] / tests / language / stats / means.at
index 56ab455ba87734b5638a35f3cf7caba626f52fa5..0d990f85b125deaf82326b29e75366b8d6b64dd9 100644 (file)
@@ -570,4 +570,26 @@ MEANS TABLES =  outcome
 
 AT_CHECK([pspp -O format=csv means-bad.sps], [1], [ignore])
 
-AT_CLEANUP
\ No newline at end of file
+AT_CLEANUP
+
+
+
+AT_SETUP([MEANS parser bug])
+
+dnl This bug caused an infinite loop
+AT_DATA([means-bad.sps], [dnl
+DATA LIST notable LIST /a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 fylo *.
+begin data.
+1 2 3 4 5 6 7 8 9 0 11
+end data.
+
+MEANS TABLES = a1 a2 a3 a4 a5 a6 a7 a8 a9 a10a BY fylo.
+])
+
+AT_CHECK([pspp -O format=csv means-bad.sps], [1], [ignore])
+
+AT_CLEANUP
+
+
+
+