factor: Fix return type of do_factor_by_matrix().
[pspp] / tests / language / utilities / permissions.at
index 873057c85e2cb4c67ee0e3028942bd85b9037856..56698c337cadf61f8a6303a2f09d8fc93f44fea9 100644 (file)
@@ -23,3 +23,14 @@ AT_CHECK([ls -l foobar], [0], [stdout])
 AT_CHECK([sed 's/^\(..........\).*/\1/' stdout], [0], [-rw-r--r--
 ])
 AT_CLEANUP
+
+
+
+AT_SETUP([PERMISSIONS - bad syntax])
+AT_DATA([pe.sps], [[PERMI|SIONS /FILE='foobar' PERMISSIONS=WRITEABLE.
+]])
+
+AT_CHECK([pspp -O format=csv pe.sps], [1], [dnl
+pe.sps:1.6: error: PERMISSIONS: Syntax error at `|': expecting STRING.
+])
+AT_CLEANUP