summaryrefslogtreecommitdiff
path: root/tests-clar/clar_libgit2.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests-clar/clar_libgit2.h')
-rw-r--r--tests-clar/clar_libgit2.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests-clar/clar_libgit2.h b/tests-clar/clar_libgit2.h
index bb2feee6a..4d338efca 100644
--- a/tests-clar/clar_libgit2.h
+++ b/tests-clar/clar_libgit2.h
@@ -25,26 +25,6 @@
*/
#define cl_git_fail(expr) cl_must_fail(expr)
-/**
- * Wrapper for string comparison that knows about nulls.
- */
-#define cl_assert_strequal(a,b) \
- cl_assert_strequal_internal(a,b,__FILE__,__LINE__,"string mismatch: " #a " != " #b)
-
-GIT_INLINE(void) cl_assert_strequal_internal(
- const char *a, const char *b, const char *file, int line, const char *err)
-{
- int match = (a == NULL || b == NULL) ? (a == b) : (strcmp(a, b) == 0);
- if (!match) {
- char buf[4096];
- snprintf(buf, 4096, "'%s' != '%s'", a, b);
- clar__assert(0, file, line, err, buf, 1);
- }
-}
-
-#define cl_assert_intequal(a,b) \
- do { if ((a) != (b)) { char buf[128]; snprintf(buf,128,"%d != %d",(a),(b)); clar__assert(0,__FILE__,__LINE__,#a " != " #b,buf,1); } } while (0)
-
/*
* Some utility macros for building long strings
*/