Fixed a whole lot more memory leaks.
[pspp] / tests / command / sort.sh
index 0f7dd17783f27f486f3359aceb1b0b6cd202e9b1..44e5fd0546cb8146a3f3f7556430c67152413bfc 100755 (executable)
@@ -3,6 +3,7 @@
 # This program tests the sort command
 
 TEMPDIR=/tmp/pspp-tst-$$
+TESTFILE=$TEMPDIR/`basename $0`.sps
 
 here=`pwd`;
 
@@ -47,10 +48,10 @@ cd $TEMPDIR
 
 
 activity="generate stat program"
-cat > $TEMPDIR/sort.stat <<EOF
+cat > $TESTFILE <<EOF
 title 'Test SORT procedure'.
 
-data list file='$here/sort.data' notable /X000 to X126 1-127(a).
+data list file='$here/sort.data' notable /X000 to X126 1-127.
 sort by X000 to x005.
 print /X000 to X005.
 execute.
@@ -58,7 +59,7 @@ EOF
 if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="run program"
-$here/../src/pspp -o raw-ascii $TEMPDIR/sort.stat
+$SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
 if [ $? -ne 0 ] ; then no_result ; fi
 
 # Now there should be some sorted data in $TEMPDIR/pspp.list