Fix double-free bug.
[pspp] / tests / bugs / examine-1sample.sh
index 497ee89225f8e53ac52c650bfa2f16df816b6a97..14206a59c5967c706b3679e4ca6622c909756fe0 100755 (executable)
@@ -4,6 +4,7 @@
 # would crash if a data file with only one case was presented
 
 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 /quality * .
 BEGIN DATA
 3  
@@ -62,7 +63,7 @@ EOF
 if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="run program"
-$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/out.stat
+$SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
 if [ $? -ne 0 ] ; then fail ; fi
 
 pass