[PATCH] A test case addition for strbuf regression
authorJunio C Hamano <junkio@cox.net>
Thu, 19 May 2005 06:55:07 +0000 (23:55 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 19 May 2005 14:42:07 +0000 (07:42 -0700)
This test would have caught the strbuf eof condition gotcha,
hopefully fixed with my previous patch.

Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
t/t4000-diff-format.sh

index 91ed2dc65c6d14276d3533942f902cdcf45de177..3accb14f00b8d1b9cdcee1ca8eac34bd8e82e8ac 100644 (file)
@@ -50,4 +50,13 @@ test_expect_success \
     'validate git-diff-files -p output.' \
     'cmp -s current expected'
 
+test_expect_success \
+    'build same diff using git-diff-helper.' \
+    'git-diff-files -z | git-diff-helper -z >current'
+
+
+test_expect_success \
+    'validate git-diff-helper output.' \
+    'cmp -s current expected'
+
 test_done