summaryrefslogtreecommitdiff
path: root/t/t4200-rerere.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-06-22 09:03:26 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-06-22 09:03:26 (GMT)
commit7f8365f894d60f240edd356f32e3c1bda994ed41 (patch)
treec9e58c23437b9ccd51da537ba86298b99d0181a8 /t/t4200-rerere.sh
parent51e0d0a67b8d31e92d52e15b577afb079359ec63 (diff)
downloadgit-7f8365f894d60f240edd356f32e3c1bda994ed41.zip
git-7f8365f894d60f240edd356f32e3c1bda994ed41.tar.gz
git-7f8365f894d60f240edd356f32e3c1bda994ed41.tar.bz2
t4200: fix rerere test
The test used "diff-files -q" which is not about reporting if there is a difference at all. Instead, make sure that the path remains as conflicting in the index after rerere autoresolves it, as we will be adding rerere.autoupdate configuration with the next patch.
Diffstat (limited to 't/t4200-rerere.sh')
-rwxr-xr-xt/t4200-rerere.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/t4200-rerere.sh b/t/t4200-rerere.sh
index 85d7e3e..afb3e3d 100755
--- a/t/t4200-rerere.sh
+++ b/t/t4200-rerere.sh
@@ -193,9 +193,9 @@ test_expect_success 'resolution was recorded properly' '
echo Bello > file3 &&
git add file3 &&
git commit -m version2 &&
- ! git merge fifth &&
- git diff-files -q &&
- test Cello = "$(cat file3)"
+ test_must_fail git merge fifth &&
+ test Cello = "$(cat file3)" &&
+ test 0 != $(git ls-files -u | wc -l)
'
test_done