summaryrefslogtreecommitdiff
path: root/tests-clar/checkout/index.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-09-05 11:45:29 -0700
committerRussell Belfer <rb@github.com>2013-09-05 11:45:29 -0700
commitc97d407d9cc54fc99af0a57e09e04e9e0bc68cb6 (patch)
treef3944ca9441705d03922766d5fb7b0872818bafe /tests-clar/checkout/index.c
parentf240acce865ec14df0d517d5000316a933e7ffed (diff)
downloadlibgit2-c97d407d9cc54fc99af0a57e09e04e9e0bc68cb6.tar.gz
Fix tests of file modes
This fixes an issue checking file modes in the tests that initialize a repo from a template directory when a symlink is used in the template. Also, this updates some other places where we are examining file modes to use the new macros.
Diffstat (limited to 'tests-clar/checkout/index.c')
-rw-r--r--tests-clar/checkout/index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests-clar/checkout/index.c b/tests-clar/checkout/index.c
index c9352d8ce..73050d08e 100644
--- a/tests-clar/checkout/index.c
+++ b/tests-clar/checkout/index.c
@@ -267,7 +267,7 @@ void test_checkout_index__options_override_file_modes(void)
cl_git_pass(git_checkout_index(g_repo, NULL, &opts));
cl_git_pass(p_stat("./testrepo/new.txt", &st));
- cl_assert_equal_i_fmt(st.st_mode & 0777, 0700, "%07o");
+ cl_assert_equal_i_fmt(st.st_mode & GIT_MODE_PERMS_MASK, 0700, "%07o");
#endif
}