Add CHECK_STRING testlib macro

This commit is contained in:
Nigel Tao committed 2020-01-05 11:19:22 +11:00
1 parent e6db7f6a40
commit 77a5311c4b
8 files changed
+83 -273

No files matched your search

+8
View File
@@ -64,6 +64,14 @@ char fail_msg[65536] = {0};
#define INCR_FAIL(msg, ...) \
msg += snprintf(msg, sizeof(fail_msg) - (msg - fail_msg), ##__VA_ARGS__)
#define CHECK_STRING(string) \
{ \
const char* z = string; \
if (z) { \
return z; \
} \
}
int tests_run = 0;
uint64_t iterscale = 100;