Skip to content

Commit

Permalink
Enable jemalloc pool test with BA_GLOBAL_PROVIDER
Browse files Browse the repository at this point in the history
  • Loading branch information
vinser52 committed Nov 27, 2024
1 parent e53e52f commit 01ce947
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions test/pools/jemalloc_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ using umf_test::test;
using namespace umf_test;

auto defaultParams = umfOsMemoryProviderParamsDefault();
INSTANTIATE_TEST_SUITE_P(jemallocPoolTest, umfPoolTest,
::testing::Values(poolCreateExtParams{
umfJemallocPoolOps(), nullptr,
umfOsMemoryProviderOps(), &defaultParams,
nullptr}));
INSTANTIATE_TEST_SUITE_P(
jemallocPoolTest, umfPoolTest,
::testing::Values(poolCreateExtParams{umfJemallocPoolOps(), nullptr,
umfOsMemoryProviderOps(),
&defaultParams, nullptr},
poolCreateExtParams{umfJemallocPoolOps(), nullptr,
&BA_GLOBAL_PROVIDER_OPS, nullptr,
nullptr}));

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

0 comments on commit 01ce947

Please sign in to comment.