diff options
| author | Vicent Martà <vicent@github.com> | 2013-09-05 16:56:21 -0700 |
|---|---|---|
| committer | Vicent Martà <vicent@github.com> | 2013-09-05 16:56:21 -0700 |
| commit | 366bd2f43dd6f74916b995340d62966fcd535b76 (patch) | |
| tree | b8c2e94e10f2c3163941c8177b6b1ca0d974e180 /tests-clar/checkout/checkout_helpers.c | |
| parent | cca9bea4845c5852b93d4c52a0c6efe20bb3bac2 (diff) | |
| parent | a7fcc44dcf3b2925ba366543486afd102b41838c (diff) | |
| download | libgit2-366bd2f43dd6f74916b995340d62966fcd535b76.tar.gz | |
Merge pull request #1829 from libgit2/fix-umask-fragility
Fix umask fragility
Diffstat (limited to 'tests-clar/checkout/checkout_helpers.c')
| -rw-r--r-- | tests-clar/checkout/checkout_helpers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests-clar/checkout/checkout_helpers.c b/tests-clar/checkout/checkout_helpers.c index 8da024dda..f55f7b611 100644 --- a/tests-clar/checkout/checkout_helpers.c +++ b/tests-clar/checkout/checkout_helpers.c @@ -74,8 +74,8 @@ static void check_file_contents_internal( if (strip_cr) strip_cr_from_buf(&buf); - clar__assert_equal_i((int)expected_len, (int)buf.size, file, line, "strlen(expected_content) != strlen(actual_content)", 1); - clar__assert_equal_s(expected_content, buf.ptr, file, line, msg, 1); + clar__assert_equal(file, line, "strlen(expected_content) != strlen(actual_content)", 1, PRIuZ, expected_len, (size_t)buf.size); + clar__assert_equal(file, line, msg, 1, "%s", expected_content, buf.ptr); } void check_file_contents_at_line( |
