Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2014-04-02 20:50:47 +0400
committerVicent Marti <tanoku@gmail.com>2014-04-02 20:50:47 +0400
commit0f65733b0855ff9ea838c7d06efdf544e039e05e (patch)
tree2e596f7ae1c8454e2760893490e92a7824171ed0 /tests/blame
parentada157b2375bea8ed0c7a71320a3325a9903ebd7 (diff)
Clar: skip testsvmg/clar-skip-test
Diffstat (limited to 'tests/blame')
-rw-r--r--tests/blame/simple.c16
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);