]> git.marmaro.de Git - mmh/blobdiff - test/mhshow/test-subpart
Fixed a problem that caused the test to fail if you ran it on the first
[mmh] / test / mhshow / test-subpart
index 353962dc41e33b6021029025aeaea9910b445544..c2a7262c6527debcb51b59a2afed30f0233bfe45 100755 (executable)
@@ -9,8 +9,8 @@
 set -e
 
 if test -z "${MH_OBJ_DIR}"; then
-    srcdir=`dirname $0`/../..
-    MH_OBJ_DIR=`cd $srcdir && pwd`; export MH_OBJ_DIR
+    srcdir=`dirname "$0"`/../..
+    MH_OBJ_DIR=`cd "$srcdir" && pwd`; export MH_OBJ_DIR
 fi
 
 . "$MH_OBJ_DIR/test/common.sh"
@@ -57,4 +57,6 @@ EOF
 
 # check it
 mhshow -part 1.1 -form mhl.null -nopause $msgnum > $actual 2>&1
-diff -u $expected $actual  &&  rm -f $expected $actual
+check "$expected" "$actual"
+
+exit $failed