Made BSD diff compatible
[pspp-builds.git] / tests / command / sort.sh
index c619ca25799bf4233d78518f304de9bdad8e7ccc..da1f6b54246c407e3d03f561503e850693306af1 100755 (executable)
@@ -114,8 +114,9 @@ for count_repeat_buffers in \
   activity="run program"
   $SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii sort.pspp
   if [ $? -ne 0 ] ; then no_result ; fi
-  diff -B -w sort.exp sort.out
+  
+  perl -pi -e 's/^\s*$//g' sort.exp sort.out
+  diff -w sort.exp sort.out
   if [ $? -ne 0 ] ; then fail ; fi
 done
 echo