Fixed problem which caused the test to abort if the system had no pspp
[pspp] / tests / bugs / temporary.sh
index efb39ecc6b53dacb3fd6535a914b08b1ad40982d..3fbe18421123e280c680ee66c281808d3b742e24 100755 (executable)
@@ -4,6 +4,7 @@
 
 
 TEMPDIR=/tmp/pspp-tst-$$
+TESTFILE=$TEMPDIR/`basename $0`.sps
 
 here=`pwd`;
 
@@ -47,7 +48,7 @@ mkdir -p $TEMPDIR
 cd $TEMPDIR
 
 activity="create program"
-cat > $TEMPDIR/rnd.sps <<EOF
+cat > $TESTFILE <<EOF
 DATA LIST LIST NOTABLE /x *.
 begin data.
 1
@@ -69,7 +70,7 @@ list.
 EOF
 if [ $? -ne 0 ] ; then no_result ; fi
 
-$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/rnd.sps
+$SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
 if [ $? -ne 0 ] ; then no_result ; fi