summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangli Dai <gdai@fb.com>2022-09-16 11:39:34 -0700
committerQi Wang <interwq@gmail.com>2022-09-16 15:04:59 -0700
commitc9ac1f4701d621c3f39b94970fa96ce23897a295 (patch)
treeac1a6a5ef89e0c06ceb8c85daa40a1cf1478b487
parentba19d2cb78176ef715aca461c7a7a7b2afb35772 (diff)
downloadjemalloc-c9ac1f4701d621c3f39b94970fa96ce23897a295.tar.gz
Fix a bug in C++ integration test.
-rw-r--r--test/integration/cpp/infallible_new_true.cpp3
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);
}
-