]> diplodocus.org Git - nmh/blobdiff - test/post/test-post-common.sh
mhbuildsbr.c: Don't free(3) string then print it; do reverse.
[nmh] / test / post / test-post-common.sh
index 3b1a3d0..66feddc 100755 (executable)
@@ -9,7 +9,8 @@ set -e
 
 setup_test
 
-localport=65412
+arith_eval 64000 + $$ % 1000
+localport=$arith_val
 testname="${MH_TEST_DIR}/$$"
 
 #
@@ -28,7 +29,7 @@ echo "clientname: nosuchhost.example.com" >> ${MHMTSCONF}
 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