3 # This program tests for a bug which caused MATCH FILES to crash
4 # when used with scratch variables.
7 TEMPDIR=/tmp/pspp-tst-$$
8 TESTFILE=$TEMPDIR/`basename $0`.pspp
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 /w * x * y * .
64 MATCH FILES FILE=* /DROP=w.
69 if [ $? -ne 0 ] ; then no_result ; fi
71 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
72 if [ $? -ne 0 ] ; then no_result ; fi
75 diff -b -B -w $TEMPDIR/pspp.list - << EOF
76 1.1 DATA LIST. Reading free-form data from the command file.
86 -------- -------- --------
90 if [ $? -ne 0 ] ; then fail ; fi