summaryrefslogtreecommitdiff
path: root/tests/tests.h
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-02-04 11:23:37 -0600
committersanine <sanine.not@pm.me>2023-02-04 11:23:37 -0600
commit7c93fe6bc9f061484d28115e9fa1ec5f89ce5924 (patch)
tree847a46f89fcb9b2e53c84e39a3e153f4dbd7b010 /tests/tests.h
parentc7bf6fcccd50ded889b7cfb853af51e7c5f28d45 (diff)
fix segfault when comparing NULL strings
Diffstat (limited to 'tests/tests.h')
-rw-r--r--tests/tests.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/tests.h b/tests/tests.h
index 4a02f66..448f14f 100644
--- a/tests/tests.h
+++ b/tests/tests.h
@@ -17,10 +17,12 @@ int validate_message(const char* received, const char* expected,
X(test_CHECK_EQ) \
X(test_CHECK_EQF) \
X(test_CHECK_EQS) \
+ X(test_CHECK_EQS_NULL) \
X(test_REQUIRE) \
X(test_REQUIRE_EQ) \
X(test_REQUIRE_EQF) \
X(test_REQUIRE_EQS) \
+ X(test_REQUIRE_EQS_NULL) \
#define X(test) const char * test();
TESTS