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 STAT_CONFIG_PATH=$top_srcdir/config
16 export STAT_CONFIG_PATH
53 activity="create program"
55 DATA LIST LIST /w * x * y * .
66 MATCH FILES FILE=* /DROP=w.
71 if [ $? -ne 0 ] ; then no_result ; fi
73 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
74 if [ $? -ne 0 ] ; then no_result ; fi
77 diff -b -B -w $TEMPDIR/pspp.list - << EOF
78 1.1 DATA LIST. Reading free-form data from the command file.
88 -------- -------- --------
92 if [ $? -ne 0 ] ; then fail ; fi