Skip to content

Commit 1b99bc7

Browse files
committed
Enable jemalloc pool test with BA_GLOBAL_PROVIDER
1 parent fb53918 commit 1b99bc7

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

test/pools/jemalloc_pool.cpp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,14 @@ os_params_unique_handle_t createOsMemoryProviderParams() {
2626
}
2727
auto defaultParams = createOsMemoryProviderParams();
2828

29-
INSTANTIATE_TEST_SUITE_P(jemallocPoolTest, umfPoolTest,
30-
::testing::Values(poolCreateExtParams{
31-
umfJemallocPoolOps(), nullptr,
32-
umfOsMemoryProviderOps(), defaultParams.get(),
33-
nullptr}));
29+
INSTANTIATE_TEST_SUITE_P(
30+
jemallocPoolTest, umfPoolTest,
31+
::testing::Values(poolCreateExtParams{umfJemallocPoolOps(), nullptr,
32+
umfOsMemoryProviderOps(),
33+
defaultParams.get(), nullptr},
34+
poolCreateExtParams{umfJemallocPoolOps(), nullptr,
35+
&BA_GLOBAL_PROVIDER_OPS, nullptr,
36+
nullptr}));
3437

3538
// this test makes sure that jemalloc does not use
3639
// memory provider to allocate metadata (and hence

0 commit comments

Comments
 (0)