Fix bug in GRAPH when a bad dependent variable was specified.
[pspp] / tests / language / stats / graph.at
index b08f9f26d9a52b4d540cfb669b888786313e584a..f9daa69cbb2f89d53415021ca2777e7f6d506354 100644 (file)
@@ -307,4 +307,26 @@ GRAPH /BAR = MINIMUM(y) BY z BY y.
 AT_CHECK([pspp -o pspp.pdf barchart.sps], [0], [ignore])
 dnl Ignore output -- this is just a no-crash check.
 
+AT_CLEANUP
+
+
+
+
+
+AT_SETUP([GRAPH buggy syntax])
+
+AT_DATA([barchart.sps], [dnl
+data list notable list /x y z*.
+begin data
+1  1  3
+2  1  4
+10  2  4
+end data.
+
+GRAPH /BAR = MINIMUM({) BY z BY y.
+])
+
+AT_CHECK([pspp -o pspp.pdf barchart.sps], [1], [ignore])
+dnl Ignore output -- this is just a no-crash check.
+
 AT_CLEANUP
\ No newline at end of file