Add assertion to check code consitency
[pspp-builds.git] / tests / bugs / empty-do-repeat.sh
index ad82c23341decbf91e83d790b0785cdf8a6d15a0..b96b2feab28075dbe117f3a25763d6e3373a21f0 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
 }
@@ -67,7 +71,7 @@ if [ $? -ne 0 ] ; then no_result ; fi
 
 # Must not crash.
 activity="run program"
-$SUPERVISOR $PSPP $TEMPDIR/repeat.stat 
+$SUPERVISOR $PSPP --testing-mode $TEMPDIR/repeat.stat 
 if [ $? -ne 0 ] ; then fail ; fi
 
 pass;