mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 05:33:06 +00:00
Fix test/unit/prof_threshold when !config_stats
This commit is contained in:
@@ -64,6 +64,8 @@ static void allocate_chunks(int chunks) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TEST_BEGIN(test_prof_threshold_hook) {
|
TEST_BEGIN(test_prof_threshold_hook) {
|
||||||
|
test_skip_if(!config_stats);
|
||||||
|
|
||||||
/* Test setting and reading the hook (both value and null) */
|
/* Test setting and reading the hook (both value and null) */
|
||||||
write_prof_threshold_hook(mock_prof_threshold_hook);
|
write_prof_threshold_hook(mock_prof_threshold_hook);
|
||||||
expect_ptr_eq(read_prof_threshold_hook(), mock_prof_threshold_hook, "Unexpected hook");
|
expect_ptr_eq(read_prof_threshold_hook(), mock_prof_threshold_hook, "Unexpected hook");
|
||||||
|
|||||||
Reference in New Issue
Block a user