From 28905f5b294dbf8d5059b1f2b0381d23ccae8ed9 Mon Sep 17 00:00:00 2001 From: David Levine Date: Thu, 18 Apr 2013 21:30:33 -0500 Subject: [PATCH] Fixed permissions of maildelivery file in test-slocal to fix test failure reported by Paul Fox. Also added code to the test to help diagnose any failure. --- test/slocal/test-slocal | 72 +++++++++++++++++++++++------------------ 1 file changed, 40 insertions(+), 32 deletions(-) diff --git a/test/slocal/test-slocal b/test/slocal/test-slocal index 40e3ee32..db6c945b 100755 --- a/test/slocal/test-slocal +++ b/test/slocal/test-slocal @@ -73,64 +73,72 @@ fi # So, it would put the message in the user's inbox, not the # test inbox. slocal also freopens stdout and stderr to # /dev/null, so we can't view them to verify simulated delivery. -cat >$md <"$md" <"$actual2" 2>&1 run_test "grep ^retrieving $actual2" 'retrieving message from stdin' # check -verbose -$slocal -verbose -maildelivery $md $mbox <"$MH_TEST_DIR"/Mail/inbox/1 \ +$slocal -verbose -maildelivery "$md" $mbox <"$MH_TEST_DIR"/Mail/inbox/1 \ >"$actual2" 2>&1 run_test "grep ^delivering $actual2" "delivering to pipe \"$tee\", success." # check -noverbose -$slocal -verbose -noverbose -maildelivery $md $mbox \ +$slocal -verbose -noverbose -maildelivery "$md" $mbox \ <"$MH_TEST_DIR"/Mail/inbox/1 >"$actual2" 2>&1 run_test "grep ^delivering $actual2" '' rm -f "$actual2" # check match of From -cat >$md <"$md" <$md <"$md" <$md <"$md" <$md <"$md" <$md <"$md" <$md <"$md" <$md <"$md" <$md <"$md" <$md <"$md" <$md <"$md" <