]> diplodocus.org Git - nmh/blobdiff - test/mkstemp/test-mkstemp
Oops, should have offset file in showbuildenv rather than cat.
[nmh] / test / mkstemp / test-mkstemp
index e5a91b57b771c23e7a4724ee55fbf192b3292a48..fcc8cd57284450219c34163ecdd2a943aee89e54 100755 (executable)
@@ -19,7 +19,7 @@ setup_test
 expected="$MH_TEST_DIR"/$$.expected
 actual="$MH_TEST_DIR"/$$.actual
 
-mkstemp="${MH_LIB_DIR}/mkstemp"
+mkstemp="${MH_LIBEXEC_DIR}/mkstemp"
 $mkstemp -help | grep suffix >/dev/null  &&  has_mkstemps=1  ||  has_mkstemps=0
 
 cd "$MHTMPDIR"
@@ -47,8 +47,9 @@ else
        EOF
 fi
 
-$mkstemp -h >$actual 2>&1
-check $expected $actual
+#### Skip nmh intro text.
+run_prog $mkstemp -h | sed '/^$/,$d' >"$actual" 2>&1
+check "$expected" "$actual"
 
 
 # check -version