Made BSD diff compatible
[pspp-builds.git] / tests / bugs / random.sh
index a2db6391bdf4d98fc25a7ecdad09e768c38e1743..ae4d4774b05dfa3f8cee308f4635288ba1ac38c3 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
@@ -71,7 +72,8 @@ if [ $? -ne 0 ] ; then no_result ; fi
 
 
 activity="compare output"
-diff -b -B -w $TEMPDIR/pspp.list - << EOF
+perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
+diff -b  -w $TEMPDIR/pspp.list - << EOF | perl -e 's/^\s*$//g'
       R1
 --------
      7.71