git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] t/t4131-apply-fake-ancestor.sh: fix broken test
@ 2011-12-03 20:35 Brandon Casey
  2011-12-03 20:35 ` [PATCH 2/2] builtin/apply.c: report error on failure to recognize input Brandon Casey
  0 siblings, 1 reply; 6+ messages in thread
From: Brandon Casey @ 2011-12-03 20:35 UTC (permalink / raw)
  To: git; +Cc: artem.bityutskiy, Brandon Casey

The third test "apply --build-fake-ancestor in a subdirectory" has been
broken since it was introduced.  It intended to modify a tracked file named
'sub/3.t' and then produce a diff which could be git apply'ed, but the file
named 'sub/3.t' does not exist.  The file that exists in the repo is called
'sub/3'.  Since no tracked files were modified, an empty diff was produced,
and the test succeeded.

Correct this test by supplying the intended name of the tracked file,
'sub/3.t', to test_commit in the first test.

Signed-off-by: Brandon Casey <drafnel@gmail.com>
---
 t/t4131-apply-fake-ancestor.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/t/t4131-apply-fake-ancestor.sh b/t/t4131-apply-fake-ancestor.sh
index 94373ca..b1361ce 100755
--- a/t/t4131-apply-fake-ancestor.sh
+++ b/t/t4131-apply-fake-ancestor.sh
@@ -11,7 +11,7 @@ test_expect_success 'setup' '
 	test_commit 1 &&
 	test_commit 2 &&
 	mkdir sub &&
-	test_commit 3 sub/3 &&
+	test_commit 3 sub/3.t &&
 	test_commit 4
 '
 
-- 
1.7.8

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-12-05 22:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-03 20:35 [PATCH 1/2] t/t4131-apply-fake-ancestor.sh: fix broken test Brandon Casey
2011-12-03 20:35 ` [PATCH 2/2] builtin/apply.c: report error on failure to recognize input Brandon Casey
2011-12-04 13:30   ` Artem Bityutskiy
2011-12-04 15:39     ` Brandon Casey
2011-12-05 19:27   ` Junio C Hamano
2011-12-05 22:38     ` Brandon Casey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).