Updated pspp-mode.el.
[pspp-builds.git] / tests / bugs / val-labs.sh
index fc052b7b86bc1189177d912431e0003c3cd5479c..b1e7abb0e689ec29e8bababc8a0ebc264386d6bf 100755 (executable)
@@ -5,6 +5,7 @@
 
 
 TEMPDIR=/tmp/pspp-tst-$$
+TESTFILE=$TEMPDIR/`basename $0`.sps
 
 here=`pwd`;
 
@@ -48,7 +49,7 @@ mkdir -p $TEMPDIR
 cd $TEMPDIR
 
 activity="create program"
-cat > $TEMPDIR/rnd.sps <<EOF
+cat > $TESTFILE <<EOF
 DATA LIST LIST /a * pref * .
 BEGIN DATA.
     1.00     1.00    
@@ -64,7 +65,9 @@ VALUE LABELS /var=a 'label for a'.
 EOF
 if [ $? -ne 0 ] ; then no_result ; fi
 
-$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/rnd.sps > /dev/null
+#Invalid syntax --- return value is non zero.
+activity="run program"
+$SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE > /dev/null
 if [ $? -ne 1 ] ; then fail ; fi
 
 pass;