]> diplodocus.org Git - nmh/blobdiff - test/post/test-post-common.sh
mhstoresbr.c: Factor MIME-parameter-can-be-used-for-filename test.
[nmh] / test / post / test-post-common.sh
index 3b1a3d0b9b99840281dd997a42774f61a2f56374..66feddca8c3f69d19b6142e97534e046b8644270 100755 (executable)
@@ -9,7 +9,8 @@ set -e
 
 setup_test
 
 
 setup_test
 
-localport=65412
+arith_eval 64000 + $$ % 1000
+localport=$arith_val
 testname="${MH_TEST_DIR}/$$"
 
 #
 testname="${MH_TEST_DIR}/$$"
 
 #
@@ -28,7 +29,7 @@ echo "clientname: nosuchhost.example.com" >> ${MHMTSCONF}
 test_post ()
 { pid=`"${MH_OBJ_DIR}/test/fakesmtp" "$1" $localport`
 
 test_post ()
 { pid=`"${MH_OBJ_DIR}/test/fakesmtp" "$1" $localport`
 
-    send -draft -server 127.0.0.1 -port $localport $3 || exit 1
+    run_prog send -draft -server 127.0.0.1 -port $localport $3
 
     #
     # It's hard to calculate the exact Date: header post is going to
 
     #
     # It's hard to calculate the exact Date: header post is going to