]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t6102-rev-list-unexpected-objects.sh
Merge branch 'vn/xmmap-gently' into maint
[thirdparty/git.git] / t / t6102-rev-list-unexpected-objects.sh
index e3ec19553292993cc21ff9d4757a3f14703e9cb3..28611c978e6c0094a5e452bf8c8c8778da02ae6c 100755 (executable)
@@ -30,7 +30,7 @@ test_expect_success 'setup unexpected non-tree entry' '
        broken_tree="$(git hash-object -w --literally -t tree broken-tree)"
 '
 
-test_expect_failure 'traverse unexpected non-tree entry (lone)' '
+test_expect_success 'traverse unexpected non-tree entry (lone)' '
        test_must_fail git rev-list --objects $broken_tree
 '
 
@@ -63,12 +63,14 @@ test_expect_success 'setup unexpected non-tree root' '
                broken-commit)"
 '
 
-test_expect_failure 'traverse unexpected non-tree root (lone)' '
+test_expect_success 'traverse unexpected non-tree root (lone)' '
        test_must_fail git rev-list --objects $broken_commit
 '
 
-test_expect_failure 'traverse unexpected non-tree root (seen)' '
-       test_must_fail git rev-list --objects $blob $broken_commit
+test_expect_success 'traverse unexpected non-tree root (seen)' '
+       test_must_fail git rev-list --objects $blob $broken_commit \
+               >output 2>&1 &&
+       test_i18ngrep "not a tree" output
 '
 
 test_expect_success 'setup unexpected non-commit tag' '