Silence return value warning
diff --git a/tests-clar/clar_helpers.c b/tests-clar/clar_helpers.c
index 8604078..fc4ac73 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));