Made all the tests respect the PSPP_TEST_NO_CLEANUP environment variable.
[pspp-builds.git] / tests / bugs / data-crash.sh
index 315555237efe7d7c1bafa418a943ed54bbc88e29..dfdcbfdc60f2da20c2fe29075cc452bafd2372e4 100755 (executable)
@@ -21,6 +21,10 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then 
+       echo "NOT cleaning $TEMPDIR" 
+       return ; 
+     fi
      cd /
      rm -rf $TEMPDIR
 }
@@ -63,8 +67,7 @@ if [ $? -ne 0 ] ; then no_result ; fi
 
 #This must fail
 activity="run program"
-$SUPERVISOR $PSPP $TEMPDIR/ct.stat > /dev/null
+$SUPERVISOR $PSPP --testing-mode -e /dev/null $TEMPDIR/ct.stat 
 if [ $? -ne 1 ] ; then fail ; fi
 
-
 pass;