aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/curlcheck.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unit/curlcheck.h b/tests/unit/curlcheck.h
index 524dbbce8..360afcac6 100644
--- a/tests/unit/curlcheck.h
+++ b/tests/unit/curlcheck.h
@@ -23,6 +23,13 @@
unitfail++; \
}
+#define verify_memory(dynamic, check, len) \
+ if(memcmp(dynamic, check, len)) { \
+ fprintf(stderr, "%s:%d The dynamic string didn't match '%s'\n", \
+ __FILE__, __LINE__, check); \
+ unitfail++; \
+ }
+
extern int unitfail;
#define UNITTEST_START \