]> diplodocus.org Git - nmh/blobdiff - test/mhshow/test-subpart
make writeQuoted() work correctly with content containing NULs
[nmh] / test / mhshow / test-subpart
index c2a7262c6527debcb51b59a2afed30f0233bfe45..9739c48df25bd8cd54f89b5bcdb77f03c62b076b 100755 (executable)
@@ -21,8 +21,8 @@ expected=$MH_TEST_DIR/$$.expected
 actual=$MH_TEST_DIR/$$.actual
 
 # Write message with a text/plain subpart.
 actual=$MH_TEST_DIR/$$.actual
 
 # Write message with a text/plain subpart.
-msgfile=$(mhpath new)
-msgnum=$(basename $msgfile)
+msgfile=`mhpath new`
+msgnum=`basename $msgfile`
 cat > $msgfile <<EOF
 MIME-Version: 1.0
 Content-Type: multipart/mixed; boundary="NextPart_001"
 cat > $msgfile <<EOF
 MIME-Version: 1.0
 Content-Type: multipart/mixed; boundary="NextPart_001"
@@ -51,12 +51,12 @@ EOF
 
 # Write the expected output.
 cat > $expected <<EOF
 
 # Write the expected output.
 cat > $expected <<EOF
-part 1.1   text/plain                  29
+[ part 1.1 - text/plain -   29B  ]
 This is the text/plain part.
 EOF
 
 # check it
 This is the text/plain part.
 EOF
 
 # check it
-mhshow -part 1.1 -form mhl.null -nopause $msgnum > $actual 2>&1
+run_prog mhshow -part 1.1 -form mhl.null $msgnum > $actual 2>&1
 check "$expected" "$actual"
 
 exit $failed
 check "$expected" "$actual"
 
 exit $failed