From 01ccb3f07cef6989517ff99252ca00b0e1c1c07c Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Thu, 15 Mar 2012 11:55:34 -0400 Subject: [PATCH] I guess the -i option to sed works differently on Linux and MacOS X; deal with it. --- test/post/test-post-common.sh | 4 +++- test/post/test-post-fcc | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/test/post/test-post-common.sh b/test/post/test-post-common.sh index 7698b81..c35a5a2 100755 --- a/test/post/test-post-common.sh +++ b/test/post/test-post-common.sh @@ -37,7 +37,9 @@ test_post () # compare it against our "correct" output. # - sed -i "" -e 's/^Date:.*/Date:/' "$1" + sed -i.bak -e 's/^Date:.*/Date:/' "$1" + + rm -f "${1}.bak" check "$1" "$2" } diff --git a/test/post/test-post-fcc b/test/post/test-post-fcc index b8a9419..5ade972 100755 --- a/test/post/test-post-fcc +++ b/test/post/test-post-fcc @@ -54,8 +54,10 @@ EOF msgname=$(mhpath +inbox 11) -sed -i "" -e 's/^Date:.*/Date:/' ${msgname} +sed -i.bak -e 's/^Date:.*/Date:/' "${msgname}" -check "${testname}.msg.expected" ${msgname} +rm -f "${msgname}.bak" + +check "${testname}.msg.expected" "${msgname}" exit ${failed:-0} -- 1.7.10.4