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 STAT_CONFIG_PATH=$top_srcdir/config
15 export STAT_CONFIG_PATH
51 activity="create program"
53 GET /FILE='$TEMPDIR/no-file.xx'.
55 if [ $? -ne 0 ] ; then no_result ; fi
58 # The command should produce a warning. Not an error.
59 # We use the stdinput here, because the bug seems to manifest itself only in
61 activity="run program"
62 cat $TESTFILE | $SUPERVISOR $here/../src/pspp -o raw-ascii > /dev/null
63 if [ $? -ne 0 ] ; then fail ; fi