@matheusbsbs / matheus-bagliano / commits / 58db64f73c
Fork 0

make t8001 work on Mac OS X again

The test was recently broken to expect sed to leave the incomplete line at the end without newline. POSIX says that output of the pattern space is to be followed by a newline, while GNU adds the newline back only when it was stripped when input. GNU behaviour is arguably more intuitive and nicer, but we should not depend on it. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Acked-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>

Johannes Schindelin committed Mar 6, 2007 at 19:48 UTC 58db64f73c3dedb41467f915b45d305d52d04d2c
1 file changed +2 -1
t/annotate-tests.sh
+2 -1
@@ -114,7 +114,8 @@ test_expect_success \
114 test_expect_success \
115 'some edit' \
116 'mv file file.orig &&
117 - sed -e "s/^3A/99/" -e "/^1A/d" < file.orig > file &&
117 + sed -e "s/^3A/99/" -e "/^1A/d" -e "/^incomplete/d" < file.orig > file &&
118 + echo "incomplete" | tr -d "\\012" >>file &&
119 GIT_AUTHOR_NAME="D" git commit -a -m "edit"'
120
121 test_expect_success \