summaryrefslogtreecommitdiff
path: root/tests/test_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_common.h')
-rw-r--r--tests/test_common.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/test_common.h b/tests/test_common.h
index 532e7b2f..47ffa2a4 100644
--- a/tests/test_common.h
+++ b/tests/test_common.h
@@ -17,11 +17,17 @@ int TEST_EQ(int result, int expected_result, char* testname);
* Also update the global gTestSuccess flag if test fails. */
int TEST_NEQ(int result, int not_expected_result, char* testname);
-/* Return 1 if result is equal to expected_result, else return 0.
- * Also update the global gTestSuccess flag if test fails. */
+/* Return 1 if result pointer is equal to expected_result pointer,
+ * else return 0. Does not check pointer contents, only the pointer
+ * itself. Also update the global gTestSuccess flag if test fails. */
int TEST_PTR_EQ(const void* result, const void* expected_result,
char* testname);
+/* Return 1 if result string is equal to expected_result string,
+ * else return 0. Also update the global gTestSuccess flag if test fails. */
+int TEST_STR_EQ(const char* result, const char* expected_result,
+ char* testname);
+
/* ANSI Color coding sequences.
*
* Don't use \e as MSC does not recognize it as a valid escape sequence.