diff options
Diffstat (limited to 'tests/test_common.h')
-rw-r--r-- | tests/test_common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_common.h b/tests/test_common.h index 9d6e8eaf..ef21c3b5 100644 --- a/tests/test_common.h +++ b/tests/test_common.h @@ -34,6 +34,11 @@ int TEST_PTR_NEQ(const void* result, const void* expected_result, int TEST_STR_EQ(const char* result, const char* expected_result, const char* testname); +/* Return 1 if result string is not equal to not_expected_result string, + * else return 0. Also update the global gTestSuccess flag if test fails. */ +int TEST_STR_NEQ(const char* result, const char* not_expected_result, + const char* testname); + /* Return 1 if the result is true, else return 0. * Also update the global gTestSuccess flag if test fails. */ int TEST_TRUE(int result, const char* testname); |