mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 14:41:42 +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;
|
bool fake_abort_called;
|
||||||
void fake_abort(const char *message) {
|
void fake_abort(const char *message) {
|
||||||
const char *expected_start = "<jemalloc>: Allocation of size";
|
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();
|
abort();
|
||||||
}
|
}
|
||||||
fake_abort_called = true;
|
fake_abort_called = true;
|
||||||
|
|
@ -64,4 +64,3 @@ main(void) {
|
||||||
return test(
|
return test(
|
||||||
test_failing_alloc);
|
test_failing_alloc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue