diff options
author | Vicent Martà <tanoku@gmail.com> | 2012-05-03 13:30:14 -0700 |
---|---|---|
committer | Vicent Martà <tanoku@gmail.com> | 2012-05-03 13:30:14 -0700 |
commit | 76873c09053e210c7f739b1cda39cffd6ab865e0 (patch) | |
tree | 010de163a2175708c6bc07800e91bb107460fdc0 | |
parent | 2277216613d974b5a9cd00be9120be194706ff11 (diff) | |
download | libgit2-76873c09053e210c7f739b1cda39cffd6ab865e0.tar.gz |
Silence return value warning
-rw-r--r-- | tests-clar/clar_helpers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests-clar/clar_helpers.c b/tests-clar/clar_helpers.c index 8604078df..fc4ac7350 100644 --- a/tests-clar/clar_helpers.c +++ b/tests-clar/clar_helpers.c @@ -60,7 +60,7 @@ git_repository *cl_git_sandbox_init(const char *sandbox) cl_fixture_sandbox(sandbox); _cl_sandbox = sandbox; - p_chdir(sandbox); + cl_git_pass(p_chdir(sandbox)); /* If this is not a bare repo, then rename `sandbox/.gitted` to * `sandbox/.git` which must be done since we cannot store a folder @@ -80,7 +80,7 @@ git_repository *cl_git_sandbox_init(const char *sandbox) if (p_access("gitignore", F_OK) == 0) cl_git_pass(p_rename("gitignore", ".gitignore")); - p_chdir(".."); + cl_git_pass(p_chdir("..")); /* Now open the sandbox repository and make it available for tests */ cl_git_pass(git_repository_open(&_cl_repo, sandbox)); |