X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flanguage%2Futilities%2Fset.at;h=ef31c836c887b397b58448ab7b01c1a7c69a05c6;hb=48b5268f2d9da96af106f09efd73ddddd96e5b09;hp=e84b44d9b2f98fecca6a46067d30315722d4f568;hpb=e937634e9021aa0656a6362f169ec2183efed499;p=pspp diff --git a/tests/language/utilities/set.at b/tests/language/utilities/set.at index e84b44d9b2..ef31c836c8 100644 --- a/tests/language/utilities/set.at +++ b/tests/language/utilities/set.at @@ -22,6 +22,16 @@ x,3,2.00,1.00,1.00,3.00 AT_CLEANUP +dnl This scenario was observed to erroneously free things twice +AT_SETUP([SET crash on invalid cc]) +AT_DATA([set.pspp], [dnl +SET CCA='xxxx'.SHGW CCA. +]) + +AT_CHECK([pspp -O format=csv set.pspp], [1], [ignore]) +AT_CLEANUP + + AT_SETUP([SET MXWARNS]) dnl Make sure that syntax processing stops and that @@ -45,11 +55,11 @@ list. ]) AT_CHECK([pspp -O format=csv set.pspp], [0], [dnl -"set.pspp:5: warning: (column 3, F field) Field contents are not numeric." +set.pspp:5.3: warning: Data for variable y is not valid as format F: Field contents are not numeric. -"set.pspp:6: warning: (column 3, F field) Field contents are not numeric." +set.pspp:6.3: warning: Data for variable y is not valid as format F: Field contents are not numeric. -"set.pspp:7: warning: (column 1, F field) Field contents are not numeric." +set.pspp:7.1: warning: Data for variable x is not valid as format F: Field contents are not numeric. note: Warnings (3) exceed limit (2). Syntax processing will be halted. ]) @@ -92,7 +102,9 @@ x,y,z ]) AT_CLEANUP + + AT_BANNER([PRESERVE and RESTORE]) AT_SETUP([PRESERVE of SET FORMAT])