3 # This program tests for a bug which caused a crash when
4 # GET specified a non-existent file
6 TEMPDIR=/tmp/pspp-tst-$$
7 TESTFILE=$TEMPDIR/`basename $0`.sps
11 # ensure that top_srcdir is absolute
12 cd $top_srcdir; top_srcdir=`pwd`
14 export STAT_CONFIG_PATH=$top_srcdir/config
50 activity="create program"
52 GET /FILE='$TEMPDIR/no-file.xx'.
54 if [ $? -ne 0 ] ; then no_result ; fi
57 # The command should produce a warning. Not an error.
58 # We use the stdinput here, because the bug seems to manifest itself only in
60 activity="run program"
61 cat $TESTFILE | $SUPERVISOR $here/../src/pspp -o raw-ascii > /dev/null
62 if [ $? -ne 0 ] ; then fail ; fi