summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2015-06-29 22:12:20 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2015-06-29 22:34:00 +0000
commit64c415c2aea1f4e3d3a4dfdeb3c1588ef04ba819 (patch)
treee71f9e37df6b91dbd5f207dba94457dc1f1e6943 /tests
parenteadf37151ba8154b44a918862ddbb3a7d3d8ba14 (diff)
downloadlibgit2-64c415c2aea1f4e3d3a4dfdeb3c1588ef04ba819.tar.gz
checkout test: check getcwd return value
Diffstat (limited to 'tests')
-rw-r--r--tests/checkout/index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/checkout/index.c b/tests/checkout/index.c
index 89b014586..0d220e141 100644
--- a/tests/checkout/index.c
+++ b/tests/checkout/index.c
@@ -145,7 +145,7 @@ void test_checkout_index__honor_coresymlinks_default(void)
const char *url = git_repository_path(g_repo);
- getcwd(cwd, sizeof(cwd));
+ cl_assert(getcwd(cwd, sizeof(cwd)) != NULL);
cl_assert_equal_i(0, p_mkdir("readonly", 0555)); // Read-only directory
cl_assert_equal_i(0, chdir("readonly"));
cl_git_pass(git_repository_init(&repo, "../symlink.git", true));