mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-23 11:22:13 +03:00
Fix test/unit/prof_threshold when !config_stats
This commit is contained in:
parent
257e64b968
commit
1abeae9ebd
1 changed files with 2 additions and 0 deletions
|
|
@ -64,6 +64,8 @@ static void allocate_chunks(int chunks) {
|
|||
}
|
||||
|
||||
TEST_BEGIN(test_prof_threshold_hook) {
|
||||
test_skip_if(!config_stats);
|
||||
|
||||
/* Test setting and reading the hook (both value and null) */
|
||||
write_prof_threshold_hook(mock_prof_threshold_hook);
|
||||
expect_ptr_eq(read_prof_threshold_hook(), mock_prof_threshold_hook, "Unexpected hook");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue