Checkin of new directory structure.
[pspp-builds.git] / tests / bugs / data-crash.sh
index 73bca66ad40b50fe0546f390f864150cee9fdcd5..3ebde4fb520c4f5a7245cfe1c51c986c15eb6273 100755 (executable)
@@ -4,17 +4,23 @@
 # invalid input
 
 TEMPDIR=/tmp/pspp-tst-$$
+TESTFILE=$TEMPDIR/`basename $0`.sps
 
-here=`pwd`;
+# ensure that top_builddir  are absolute
+if [ -z "$top_builddir" ] ; then top_builddir=. ; fi
+if [ -z "$top_srcdir" ] ; then top_srcdir=. ; fi
+top_builddir=`cd $top_builddir; pwd`
 
 # ensure that top_srcdir is absolute
-cd $top_srcdir; top_srcdir=`pwd`
+top_srcdir=`cd $top_srcdir; pwd`
 
-export STAT_CONFIG_PATH=$top_srcdir/config
+STAT_CONFIG_PATH=$top_srcdir/config
+export STAT_CONFIG_PATH
 
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
@@ -54,8 +60,9 @@ EXECUTE.
 EOF
 if [ $? -ne 0 ] ; then no_result ; fi
 
-
-$here/../src/pspp $TEMPDIR/ct.stat > /dev/null
+#This must fail
+activity="run program"
+$SUPERVISOR $top_builddir/src/pspp $TEMPDIR/ct.stat > /dev/null
 if [ $? -ne 1 ] ; then fail ; fi