]> diplodocus.org Git - nmh/blobdiff - test/format/test-fmtdump
Changed direct access to etc files in a couple of tests to be the
[nmh] / test / format / test-fmtdump
index 9ea7178f509ccc9725dbc373037223227bd444f3..5680a5b1fbbceafcafe9108a3084eebe8392387d 100755 (executable)
@@ -17,7 +17,7 @@ fi
 setup_test
 
 # Use proper program, likely not the first one on PATH.
-fmtdump="${MH_LIB_DIR}/fmtdump"
+fmtdump="${MH_LIBEXEC_DIR}/fmtdump"
 
 expected=$MH_TEST_DIR/$$.expected
 expected_err=$MH_TEST_DIR/$$.expected_err
@@ -106,11 +106,11 @@ L10:      CHAR '\n'
        DONE
 EOF
 
-$fmtdump >$actual 2>&1
+run_prog $fmtdump >$actual 2>&1
 check $expected $actual 'keep first'
 
 # check -form
-$fmtdump -form "$MH_TEST_DIR/Mail/scan.default" >$actual 2>&1
+run_prog $fmtdump -form "$MH_INST_DIR${nmhetcdir}/scan.default" >$actual 2>&1
 check $expected $actual
 
 # check -format
@@ -122,7 +122,7 @@ cat >$expected <<EOF
 L0:    DONE
 EOF
 
-$fmtdump -format '%<(lit 1234567890)%(strlen)%>' >$actual 2>&1
+run_prog $fmtdump -format '%<(lit 1234567890)%(strlen)%>' >$actual 2>&1
 check $expected $actual