3 # This program tests for a bug which caused VALUE LABELS to
4 # crash when given invalid syntax
7 TEMPDIR=/tmp/pspp-tst-$$
8 TESTFILE=$TEMPDIR/`basename $0`.sps
12 # ensure that top_srcdir is absolute
13 cd $top_srcdir; top_srcdir=`pwd`
15 STAT_CONFIG_PATH=$top_srcdir/config
16 export STAT_CONFIG_PATH
53 activity="create program"
55 DATA LIST LIST /a * pref * .
63 VALUE LABELS /var=a 'label for a'.
68 if [ $? -ne 0 ] ; then no_result ; fi
70 #Invalid syntax --- return value is non zero.
71 activity="run program"
72 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE > /dev/null
73 if [ $? -ne 1 ] ; then fail ; fi