]> diplodocus.org Git - nmh/blobdiff - test/rcv/test-rcvpack
Replace getcpy() with mh_xstrdup().
[nmh] / test / rcv / test-rcvpack
index ae2b294cf455f30884aef600f297ec6439137f4e..b39ceaf03b1ea3a9161d5242598fb2239d518c92 100755 (executable)
@@ -17,7 +17,7 @@ fi
 setup_test
 
 # Use proper program, likely not the first one on PATH.
 setup_test
 
 # Use proper program, likely not the first one on PATH.
-rcvpack="${MH_LIB_DIR}/rcvpack"
+rcvpack="${MH_LIBEXEC_DIR}/rcvpack"
 
 expected="$MH_TEST_DIR/$$.expected"
 actual="$MH_TEST_DIR/$$.actual"
 
 expected="$MH_TEST_DIR/$$.expected"
 actual="$MH_TEST_DIR/$$.actual"
@@ -33,7 +33,8 @@ Usage: rcvpack [switches] file
   -help
 EOF
 
   -help
 EOF
 
-run_prog $rcvpack -help >"$actual" 2>&1
+#### Skip nmh intro text.
+run_prog "$rcvpack" -help | sed '/^$/,$d' >"$actual" 2>&1
 check "$expected" "$actual"
 
 # check -version
 check "$expected" "$actual"
 
 # check -version