Allow output files to overwrite input files (bug #21280). Thanks to
[pspp] / tests / command / erase.sh
index bbb094e14e0ad16e49ac8402645335f1329f0c97..0599bed315e666cafc21b71650d4996d753a25f0 100755 (executable)
@@ -77,7 +77,7 @@ if [ ! -f $TEMPDIR/foobar ] ; then fail ; fi
 
 # This command must fail
 activity="run prog 1"
-$SUPERVISOR $PSPP -e /dev/null $TESTFILE 
+$SUPERVISOR $PSPP --testing-mode -e /dev/null $TESTFILE 
 if [ $? -eq 0 ] ; then fail ; fi
 
 
@@ -90,8 +90,8 @@ EOF
 if [ $? -ne 0 ] ; then no_result ; fi
 
 
-activity="run prog 1"
-$SUPERVISOR $PSPP $TESTFILE
+activity="run prog 2"
+$SUPERVISOR $PSPP --testing-mode $TESTFILE
 if [ $? -ne 0 ] ; then fail ; fi
 
 # foobar should now be gone