MISSING VALUES: Improve error messages.
[pspp] / tests / language / dictionary / modify-variables.at
index 6fcd6b840a82d5bd1e7eb23786a351cff9db1090..be79d74877e983477739c29cb593e15c08eb9ced 100644 (file)
@@ -1,5 +1,5 @@
 dnl PSPP - a program for statistical analysis.
-dnl Copyright (C) 2017 Free Software Foundation, Inc.
+dnl Copyright (C) 2017, 2020 Free Software Foundation, Inc.
 dnl
 dnl This program is free software: you can redistribute it and/or modify
 dnl it under the terms of the GNU General Public License as published by
@@ -232,8 +232,24 @@ Table: Variables
 Name,Position
 y,1
 
-modify-variables.sps:16: error: MODIFY VARS: MODIFY VARS may not be used to delete all variables from the active dataset dictionary.  Use NEW FILE instead.
+"modify-variables.sps:16.14-16.19: error: MODIFY VARS: MODIFY VARS may not be used to delete all variables from the active dataset dictionary.  Use NEW FILE instead.
+   16 | MODIFY VARS /DROP y.
+      |              ^~~~~~"
 
 modify-variables.sps:17: error: Stopping syntax file processing here to avoid a cascade of dependent command failures.
 ])
 AT_CLEANUP
+
+AT_SETUP([MODIFY VARS crash])
+AT_DATA([modify-variables.sps], [dnl
+DATA LIST notable LIST /a b c (F2.0).
+BEGIN DATA.
+1 2 3
+END DATA.
+
+MODIFY VARS /RENAME (a 4 c = one two three).
+])
+
+AT_CHECK([pspp -O format=csv modify-variables.sps], [1], [ignore])
+
+AT_CLEANUP