Commit 64c415c2 by Edward Thomson

checkout test: check getcwd return value

parent eadf3715
...@@ -145,7 +145,7 @@ void test_checkout_index__honor_coresymlinks_default(void) ...@@ -145,7 +145,7 @@ void test_checkout_index__honor_coresymlinks_default(void)
const char *url = git_repository_path(g_repo); 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, p_mkdir("readonly", 0555)); // Read-only directory
cl_assert_equal_i(0, chdir("readonly")); cl_assert_equal_i(0, chdir("readonly"));
cl_git_pass(git_repository_init(&repo, "../symlink.git", true)); cl_git_pass(git_repository_init(&repo, "../symlink.git", true));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment