pspp: Fix crash passing the name of a nonexistent file on the command line.
[pspp] / tests / ui / terminal / main.at
diff --git a/tests/ui/terminal/main.at b/tests/ui/terminal/main.at
new file mode 100644 (file)
index 0000000..1ee8226
--- /dev/null
@@ -0,0 +1,7 @@
+AT_BANNER([PSPP terminal UI])
+
+AT_SETUP([nonexistent syntax file crash])
+AT_CHECK([pspp nonexistent], [1], 
+  [error: Opening `nonexistent': No such file or directory.
+])
+AT_CLEANUP