diff options
author | Vicent Marti <tanoku@gmail.com> | 2014-04-02 20:50:47 +0400 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2014-04-02 20:50:47 +0400 |
commit | 0f65733b0855ff9ea838c7d06efdf544e039e05e (patch) | |
tree | 2e596f7ae1c8454e2760893490e92a7824171ed0 /tests/blame | |
parent | ada157b2375bea8ed0c7a71320a3325a9903ebd7 (diff) |
Clar: skip testsvmg/clar-skip-test
Diffstat (limited to 'tests/blame')
-rw-r--r-- | tests/blame/simple.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/blame/simple.c b/tests/blame/simple.c index 86e8fe264..83e5e056b 100644 --- a/tests/blame/simple.c +++ b/tests/blame/simple.c @@ -137,14 +137,14 @@ void test_blame_simple__trivial_libgit2(void) /* If we can't open the libgit2 repo or if it isn't a full repo * with proper history, just skip this test */ - if (git_repository_open(&g_repo, cl_fixture("../..")) < 0 || - git_repository_is_shallow(g_repo) || - git_revparse_single(&obj, g_repo, "359fc2d") < 0) - { - printf("NOT INSIDE VALID LIBGIT2 REPO; skipping blame test\n"); - giterr_clear(); - return; - } + if (git_repository_open(&g_repo, cl_fixture("../..")) < 0) + cl_skip(); + + if (git_repository_is_shallow(g_repo)) + cl_skip(); + + if (git_revparse_single(&obj, g_repo, "359fc2d") < 0) + cl_skip(); git_oid_cpy(&opts.newest_commit, git_object_id(obj)); git_object_free(obj); |