mirror of
https://git.proxmox.com/git/libgit2
synced 2025-12-29 22:08:45 +00:00
checkout test: check getcwd return value
This commit is contained in:
parent
eadf37151b
commit
64c415c2ae
@ -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));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user