]> git.marmaro.de Git - mmh/blobdiff - test/mhbuild/test-forw
Here's the proper fix instead of the hack of d28ce569fe233141f86fe516878361da01c9f9cb...
[mmh] / test / mhbuild / test-forw
index e9a1b2f5c10836fc4b036652f19f4b861f3fdc33..5369f226ec2e9119a6e1b0f2bf410a13ffbb9720 100755 (executable)
@@ -14,15 +14,6 @@ fi
 
 setup_test
 
-# TODO: Move to a common file tests can source; need more framework...
-failed=0
-check() {
-    diff -u $expected $actual
-    if [ $? -ne 0 ]; then
-        failed=$((failed + 1))
-    fi
-}
-
 # Make a draft file forwarding two messages.
 mkdraft() {
     cat > $draft <<EOF
@@ -81,7 +72,7 @@ EOF
 mkdraft
 mhbuild $draft
 mungedraft
-check
+check $expected $actual
 
 # check mhbuild -rfc934
 cat > $expected <<EOF
@@ -118,6 +109,6 @@ EOF
 mkdraft
 mhbuild -rfc934 $draft
 mungedraft
-check
+check $expected $actual
 
 exit $failed