diff --git a/test/integration/cpp/infallible_new_true.cpp b/test/integration/cpp/infallible_new_true.cpp index 3976f08b..3b2862bd 100644 --- a/test/integration/cpp/infallible_new_true.cpp +++ b/test/integration/cpp/infallible_new_true.cpp @@ -10,7 +10,7 @@ typedef void (*abort_hook_t)(const char *message); bool fake_abort_called; void fake_abort(const char *message) { const char *expected_start = ": Allocation of size"; - if (strncmp(message, expected_start, strlen(expected_start) != 0)) { + if (strncmp(message, expected_start, strlen(expected_start)) != 0) { abort(); } fake_abort_called = true; @@ -64,4 +64,3 @@ main(void) { return test( test_failing_alloc); } -