mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-20 00:42:38 +00:00
Clean up one other mode_t assertion
This commit is contained in:
parent
780f3e540f
commit
abfed59c27
@ -115,9 +115,9 @@ static void check_mode(mode_t expected, mode_t actual)
|
|||||||
{
|
{
|
||||||
#ifdef GIT_WIN32
|
#ifdef GIT_WIN32
|
||||||
/* chmod on Win32 doesn't support exec bit, not group/world bits */
|
/* chmod on Win32 doesn't support exec bit, not group/world bits */
|
||||||
cl_assert((expected & 0600) == (actual & 0777));
|
cl_assert_equal_i_fmt((expected & 0600), (actual & 0777), "%07o");
|
||||||
#else
|
#else
|
||||||
cl_assert(expected == (actual & 0777));
|
cl_assert_equal_i_fmt(expected, (actual & 0777), "%07o");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user