diff options
author | Russell Belfer <rb@github.com> | 2013-09-04 16:21:18 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-09-04 16:23:00 -0700 |
commit | abfed59c2797e9436f2b20fadecd982d6637dc22 (patch) | |
tree | f62f83e54c3a1c5b3aca3666322b84e104a9635e | |
parent | 780f3e540fa6492b244ef2750a71e39407526c1e (diff) | |
download | libgit2-abfed59c2797e9436f2b20fadecd982d6637dc22.tar.gz |
Clean up one other mode_t assertion
-rw-r--r-- | tests-clar/core/mkdir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests-clar/core/mkdir.c b/tests-clar/core/mkdir.c index 1e50b4336..a969e4de2 100644 --- a/tests-clar/core/mkdir.c +++ b/tests-clar/core/mkdir.c @@ -115,9 +115,9 @@ static void check_mode(mode_t expected, mode_t actual) { #ifdef GIT_WIN32 /* 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 - cl_assert(expected == (actual & 0777)); + cl_assert_equal_i_fmt(expected, (actual & 0777), "%07o"); #endif } |