Fix PR 13054.
[pspp] / tests / bugs / t-test-alpha2.sh
index c59f5e700838a8cf069810c4b318bf74ed4afe82..f1f37f8f30f42c360aa7d7045b5108d5d96ca832 100755 (executable)
@@ -4,6 +4,7 @@
 #  a single alpha variable is specified for the independent variable
 
 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/out.stat <<EOF
+cat > $TESTFILE <<EOF
 data list list /id * indep (a1) dep1 * dep2 *.
 begin data.
 1  'a' 1 3
@@ -70,7 +71,7 @@ if [ $? -ne 0 ] ; then no_result ; fi
 
 
 activity="run program"
-$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/out.stat > /dev/null
+$SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE > /dev/null
 #invert  v
 if [ $? -eq 0 ] ; then fail ; fi