summaryrefslogtreecommitdiff
path: root/tests-clar/clar_libgit2.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-09-04 16:13:18 -0700
committerRussell Belfer <rb@github.com>2013-09-04 16:23:00 -0700
commit780f3e540fa6492b244ef2750a71e39407526c1e (patch)
tree1f347e45b5a53cea14342c4eb969b9dfdebc683e /tests-clar/clar_libgit2.h
parentcf94024c589591e9a5c46a71f8fdce9f8b467161 (diff)
downloadlibgit2-780f3e540fa6492b244ef2750a71e39407526c1e.tar.gz
Make tests take umask into account
It seems that libgit2 is correctly applying the umask when initializing a repository from a template and when creating new directories during checkout, but the test suite is not accounting for possible variations due to the umask. This updates that so that the test suite will work regardless of the umask.
Diffstat (limited to 'tests-clar/clar_libgit2.h')
-rw-r--r--tests-clar/clar_libgit2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests-clar/clar_libgit2.h b/tests-clar/clar_libgit2.h
index 8c8357e40..080d32bea 100644
--- a/tests-clar/clar_libgit2.h
+++ b/tests-clar/clar_libgit2.h
@@ -32,7 +32,7 @@ void cl_git_report_failure(int, const char *, int, const char *);
#define cl_assert_at_line(expr,file,line) \
clar__assert((expr) != 0, file, line, "Expression is not true: " #expr, NULL, 1)
-#define cl_assert_equal_sz(sz1,sz2) cl_assert_equal_i((int)sz1, (int)(sz2))
+#define cl_assert_equal_sz(sz1,sz2) clar__assert_equal(__FILE__,__LINE__,#sz1 " != " #sz2, 1, PRIuZ, (size_t)(sz1), (size_t)(sz2))
GIT_INLINE(void) clar__assert_in_range(
int lo, int val, int hi,