X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=tests%2Fbugs%2Fterminate.sh;h=9f3a4955576a4d47dd9e305e691fef74edb3d535;hb=4dc92d7d1ff3368b21a6cac5a4a41fcd4bb81ce4;hp=6e1168b6d0e8f132547a171a875f5b82a604f938;hpb=bc51900253384a031401ef7a68674e350dc8225f;p=pspp-builds.git diff --git a/tests/bugs/terminate.sh b/tests/bugs/terminate.sh index 6e1168b6..9f3a4955 100755 --- a/tests/bugs/terminate.sh +++ b/tests/bugs/terminate.sh @@ -6,17 +6,20 @@ TEMPDIR=/tmp/pspp-tst-$$ +TESTFILE=$TEMPDIR/`basename $0`.sps 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 } @@ -54,7 +57,7 @@ rm -f $TEMPDIR/bar.dat if [ $? -ne 0 ] ; then no_result ; fi activity="create program" -cat > $TEMPDIR/foo.sps < $TESTFILE < /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"