From 1abeae9ebd7b3c9f3ebb5e49db393149c37f18f9 Mon Sep 17 00:00:00 2001 From: Qi Wang Date: Wed, 29 Jan 2025 21:33:30 -0800 Subject: [PATCH] Fix test/unit/prof_threshold when !config_stats --- test/unit/prof_threshold.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/unit/prof_threshold.c b/test/unit/prof_threshold.c index 48e9df19..2026c1c6 100644 --- a/test/unit/prof_threshold.c +++ b/test/unit/prof_threshold.c @@ -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");