projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix comment.
[pspp-builds.git]
/
tests
/
bugs
/
terminate.sh
diff --git
a/tests/bugs/terminate.sh
b/tests/bugs/terminate.sh
index 6e1168b6d0e8f132547a171a875f5b82a604f938..9f3a4955576a4d47dd9e305e691fef74edb3d535 100755
(executable)
--- a/
tests/bugs/terminate.sh
+++ b/
tests/bugs/terminate.sh
@@
-6,17
+6,20
@@
TEMPDIR=/tmp/pspp-tst-$$
TEMPDIR=/tmp/pspp-tst-$$
+TESTFILE=$TEMPDIR/`basename $0`.sps
here=`pwd`;
# ensure that top_srcdir is absolute
cd $top_srcdir; top_srcdir=`pwd`
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()
{
cleanup()
{
+ cd /
rm -rf $TEMPDIR
}
rm -rf $TEMPDIR
}
@@
-54,7
+57,7
@@
rm -f $TEMPDIR/bar.dat
if [ $? -ne 0 ] ; then no_result ; fi
activity="create program"
if [ $? -ne 0 ] ; then no_result ; fi
activity="create program"
-cat > $TE
MPDIR/foo.sps
<<EOF
+cat > $TE
STFILE
<<EOF
DATA LIST FILE='$TEMPDIR/bar.dat' /S 1-2 (A) X 3 .
EXECUTE.
DATA LIST FILE='$TEMPDIR/bar.dat' /S 1-2 (A) X 3 .
EXECUTE.
@@
-63,7
+66,7
@@
if [ $? -ne 0 ] ; then no_result ; fi
activity="run program"
# This must exit with non zero status
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"
if [ $? -eq 0 ] ; then fail ; fi
activity="compare stderr"