Implemented the INSERT command.
[pspp] / tests / bugs / terminate.sh
index 2f7d79196f702d36bbff83fda38f35f0a1a18619..9f3a4955576a4d47dd9e305e691fef74edb3d535 100755 (executable)
@@ -13,11 +13,13 @@ here=`pwd`;
 # ensure that top_srcdir is absolute
 cd $top_srcdir; top_srcdir=`pwd`
 
-export STAT_CONFIG_PATH=$top_srcdir/config
+STAT_CONFIG_PATH=$top_srcdir/config
+export STAT_CONFIG_PATH
 
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
@@ -55,7 +57,7 @@ rm -f $TEMPDIR/bar.dat
 if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="create program"
-cat > $TEMPDIR/foo.sps <<EOF
+cat > $TESTFILE <<EOF
 DATA LIST FILE='$TEMPDIR/bar.dat' /S 1-2 (A) X 3 .
 
 EXECUTE.
@@ -64,7 +66,7 @@ if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="run program"
 # This must exit with non zero status
-$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/foo.sps > /dev/null 2> $TEMPDIR/stderr
+$SUPERVISOR $here/../src/pspp -o raw-ascii -e /dev/null $TESTFILE 2> $TEMPDIR/stderr
 if [ $? -eq 0 ] ; then fail ; fi
 
 activity="compare stderr"