]> diplodocus.org Git - nmh/blobdiff - test/mhshow/test-qp
Alter HasSuffixC()'s char * to be const.
[nmh] / test / mhshow / test-qp
index 3d4beb85e32b645d0fc67620b00c4e7a1bf7479e..1b78c8eac02b6eecac48b348bfe7e4e675f88236 100755 (executable)
@@ -20,8 +20,8 @@ expected=$MH_TEST_DIR/$$.expected
 actual=$MH_TEST_DIR/$$.actual
 
 # Write message with bogus quoted-printable data.
 actual=$MH_TEST_DIR/$$.actual
 
 # Write message with bogus quoted-printable data.
-msgfile=$(mhpath new)
-msgnum=$(basename $msgfile)
+msgfile=`mhpath new`
+msgnum=`basename $msgfile`
 cat > $msgfile <<EOF
 From: foo@example.edu
 To: bar@example.edu
 cat > $msgfile <<EOF
 From: foo@example.edu
 To: bar@example.edu
@@ -47,6 +47,7 @@ EOF
 
 # check it
 cat > $expected <<EOF
 
 # check it
 cat > $expected <<EOF
+[ Message inbox:11 ]
 Date:    Sun, 18 Dec 2005 00:52:39 +0100
 To:      bar@example.edu
 From:    foo@example.edu
 Date:    Sun, 18 Dec 2005 00:52:39 +0100
 To:      bar@example.edu
 From:    foo@example.edu
@@ -54,7 +55,7 @@ Subject: test
 
 MIME-Version: 1.0
 
 
 MIME-Version: 1.0
 
-part       text/plain                 181
+[ part  - text/plain -   181B  ]
 =
 =
 ignored space at end
 =
 =
 ignored space at end
@@ -68,5 +69,7 @@ just a newline
 =l
 =\b ^H (backspace) character, probably erased = in diff output
 EOF
 =l
 =\b ^H (backspace) character, probably erased = in diff output
 EOF
-mhshow -nopause $msgnum > $actual 2>&1
-diff -u $expected $actual
+run_prog mhshow $msgnum > $actual 2>&1
+check "$expected" "$actual" : bogus quoted-printable data
+
+exit $failed