Add scratch file handles.
[pspp-builds.git] / tests / bugs / crosstabs-crash.sh
index f77ce50bfa395158fe3c8b2bd8c7ba5350241e70..b3cae373b8a5d7eab06e6d84d07a30228016b5ed 100755 (executable)
@@ -64,8 +64,9 @@ $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
 if [ $? -ne 0 ] ; then no_result ; fi
 
 
-diff -b -B -w $TEMPDIR/pspp.list - << EOF
-1.1 DATA LIST.  Reading free-form data from the command file.
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b  -w $TEMPDIR/pspp.list - << EOF
+1.1 DATA LIST.  Reading free-form data from INLINE.
 +--------+------+
 |Variable|Format|
 #========#======#
@@ -74,7 +75,6 @@ diff -b -B -w $TEMPDIR/pspp.list - << EOF
 |X       |F8.0  |
 |Y       |F8.0  |
 +--------+------+
-
 2.1 CROSSTABS.  Summary.
 #===============#=====================================================#
 #               #                        Cases                        #
@@ -85,7 +85,6 @@ diff -b -B -w $TEMPDIR/pspp.list - << EOF
 #---------------#--------+--------+--------+--------+--------+--------#
 #X * Y          #       1|  100.0%|       0|    0.0%|       1|  100.0%#
 #===============#========#========#========#========#========#========#
-
 2.2 CROSSTABS.  X by Y [count].
 #===============#==============================================================#========#
 #               #                               Y                              |        #
@@ -101,7 +100,6 @@ diff -b -B -w $TEMPDIR/pspp.list - << EOF
 #           7.00#      .0|      .0|      .0|      .0|      .0|      .0|      .0|      .0#
 #Total          #     .0%|     .0%|     .0%|     .0%|    1.0%|     .0%|     .0%|    1.0%#
 #===============#========#========#========#========#========#========#========#========#
-
 EOF
 if [ $? -ne 0 ] ; then fail ; fi