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