mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
Fix a bug in C++ integration test.
This commit is contained in:
parent
ba19d2cb78
commit
c9ac1f4701
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue