mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-04 01:20:04 +03:00
Add the profiling settings for tests explicit.
Many profiling related tests make assumptions on the profiling settings, e.g. opt_prof is off by default, and prof_active is default on when opt_prof is on. However the default settings can be changed via --with-malloc-conf at build time. Fixing the tests by adding the assumed settings explicitly.
This commit is contained in:
parent
e491df1d2f
commit
bd70d8fc0f
13 changed files with 26 additions and 11 deletions
|
|
@ -104,8 +104,8 @@ expect_purging(unsigned arena_ind, bool expect_deferred) {
|
|||
dallocx(ptr, MALLOCX_TCACHE_NONE);
|
||||
empty_ndirty = get_empty_ndirty(arena_ind);
|
||||
if (expect_deferred) {
|
||||
expect_true(empty_ndirty == 0 || empty_ndirty == 1,
|
||||
"Unexpected extra dirty page count: %zu",
|
||||
expect_true(empty_ndirty == 0 || empty_ndirty == 1 ||
|
||||
opt_prof, "Unexpected extra dirty page count: %zu",
|
||||
empty_ndirty);
|
||||
} else {
|
||||
assert_zu_eq(0, empty_ndirty,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue