diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-01-18 21:14:41 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-01-18 21:14:49 -0800 |
commit | 8de65185e873d361ede4d6994ef257e4ac55f37d (patch) | |
tree | a6f354747e480adcd4322e1dc208abfc686392f2 /t | |
parent | grep: do not segfault when -f is used (diff) | |
download | tgif-8de65185e873d361ede4d6994ef257e4ac55f37d.tar.xz |
Fix mis-backport of t7002
The original patch that became cfe370c (grep: do not segfault when -f is
used, 2009-10-16), was made against "maint" or newer branch back then, but
the fix addressed the issue that was present as far as in 1.6.4 series.
The maintainer backported the patch to the 1.6.4 maintenance branch, but
failed to notice that the new tests assumed the setup done by the script
in "maint", which did quite a lot more than the same test script in 1.6.4
series, and the output didn't match the expected result.
This should fix it.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-x | t/t7002-grep.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/t/t7002-grep.sh b/t/t7002-grep.sh index 5f91d82297..7a5f28a326 100755 --- a/t/t7002-grep.sh +++ b/t/t7002-grep.sh @@ -25,13 +25,17 @@ test_expect_success setup ' echo foo mmap bar_mmap echo foo_mmap bar mmap baz } >file && + echo vvv >v && echo ww w >w && echo x x xx x >x && echo y yy >y && echo zzz > z && mkdir t && echo test >t/t && - git add file w x y z t/t hello.c && + echo vvv >t/v && + mkdir t/a && + echo vvv >t/a/v && + git add . && test_tick && git commit -m initial ' |