Commit abfed59c2797e9436f2b20fadecd982d6637dc22

Russell Belfer 2013-09-04T16:21:18

Clean up one other mode_t assertion

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/tests-clar/core/mkdir.c b/tests-clar/core/mkdir.c
index 1e50b43..a969e4d 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
 }