diff options
author | Guangli Dai <gdai@fb.com> | 2022-09-16 11:39:34 -0700 |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2022-09-16 15:04:59 -0700 |
commit | c9ac1f4701d621c3f39b94970fa96ce23897a295 (patch) | |
tree | ac1a6a5ef89e0c06ceb8c85daa40a1cf1478b487 | |
parent | ba19d2cb78176ef715aca461c7a7a7b2afb35772 (diff) | |
download | jemalloc-c9ac1f4701d621c3f39b94970fa96ce23897a295.tar.gz |
Fix a bug in C++ integration test.
-rw-r--r-- | test/integration/cpp/infallible_new_true.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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 = "<jemalloc>: 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); } - |