3 # This program tests for a bug which caused T-TEST 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 export STAT_CONFIG_PATH=$top_srcdir/config
51 activity="create program"
53 DATA LIST LIST /id * a * .
64 T-TEST /groups=id(3) .
66 if [ $? -ne 0 ] ; then no_result ; fi
68 #The syntax was invalid. Therefore pspp must return non zero.
69 activity="run program"
70 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE > /dev/null
71 if [ $? -ne 1 ] ; then fail ; fi