X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/40a17f8f191deee9f27fd3dd394eda9a641e6f1c..43d9833bf1dcf38c7892a23951bf1d968028a15e:/test/refile/test-refile diff --git a/test/refile/test-refile b/test/refile/test-refile index 71b2baab..6be4874c 100755 --- a/test/refile/test-refile +++ b/test/refile/test-refile @@ -16,6 +16,8 @@ fi setup_test +check_exit '-eq 1' refile - + expected=$MH_TEST_DIR/$$.expected actual=$MH_TEST_DIR/$$.actual @@ -116,7 +118,7 @@ other+ has 1 message (1- 1). TOTAL = 11 messages in 2 folders.' check_for_hard_links -if [ $hard_links_supported -eq 1 ]; then +if [ $xdir_links_supported -eq 1 ]; then # check -link run_test 'refile 7 -src +inbox +other -link' '' run_test 'folders -noheader' \ @@ -165,6 +167,8 @@ TOTAL = 12 messages in 2 folders.' run_test 'scan +other last -format %(msg):%(decode{subject})' \ '11:Testing message 9' +sbackup="`mhparam sbackup`" + # check -unlink run_test 'refile 3 -src +inbox +other -unlink' '' run_test 'folders -noheader' \ @@ -172,7 +176,7 @@ run_test 'folders -noheader' \ other has 6 messages (1-12). TOTAL = 12 messages in 2 folders.' -if test -f $MH_TEST_DIR/Mail/inbox/,3; then +if test -f "$MH_TEST_DIR/Mail/inbox/${sbackup}3"; then echo "$0: refile -unlink failed" 1>&2 failed=`expr ${failed:-0} + 1` fi @@ -184,7 +188,7 @@ run_test 'folders -noheader' \ other has 7 messages (1-13). TOTAL = 12 messages in 2 folders.' -if test -f $MH_TEST_DIR/Mail/inbox/,2; then +if test -f "$MH_TEST_DIR/Mail/inbox/${sbackup}2"; then : else echo "$0: refile -nounlink failed" 1>&2