Add scratch file handles.
[pspp-builds.git] / tests / bugs / compute-lv.sh
index e310cfb0dda67bafaad92721a4fa15f5904b6f0c..941fcca66fabcc98bf287d02d1599b0fc69fc877 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
@@ -70,15 +71,15 @@ if [ $? -ne 0 ] ; then fail ; fi
 
 
 activity="compare output"
-diff -B -b pspp.list - << EOF
-1.1 DATA LIST.  Reading free-form data from the command file.
+perl -pi -e 's/^\s*$//g' pspp.list
+diff -b pspp.list - << EOF
+1.1 DATA LIST.  Reading free-form data from INLINE.
 +----------------+------+
 |    Variable    |Format|
 #================#======#
 |longVariablename|F8.0  |
 |x               |F8.0  |
 +----------------+------+
-
 longVariablename        x
 ---------------- -------- 
            99.00     2.00