Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ce57c20

Browse files
committed
checkout test: check getcwd return value
1 parent eadf371 commit ce57c20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/checkout/index.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ void test_checkout_index__honor_coresymlinks_default(void)
145145

146146
const char *url = git_repository_path(g_repo);
147147

148-
getcwd(cwd, sizeof(cwd));
148+
cl_assert(getcwd(cwd, sizeof(cwd)));
149149
cl_assert_equal_i(0, p_mkdir("readonly", 0555)); // Read-only directory
150150
cl_assert_equal_i(0, chdir("readonly"));
151151
cl_git_pass(git_repository_init(&repo, "../symlink.git", true));

0 commit comments

Comments
 (0)