Skip to content

Commit a39b9fc

Browse files
committed
Enable umfIpcTest for OS provider with jemalloc
1 parent 3d41608 commit a39b9fc

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ if(LINUX AND (NOT UMF_DISABLE_HWLOC)) # OS-specific functions are implemented
224224
add_umf_test(
225225
NAME provider_os_memory
226226
SRCS provider_os_memory.cpp
227-
LIBS ${UMF_UTILS_FOR_TEST})
227+
LIBS ${UMF_UTILS_FOR_TEST} ${LIB_JEMALLOC_POOL})
228228
if(UMF_BUILD_LIBUMF_POOL_DISJOINT)
229229
target_compile_definitions(umf_test-provider_os_memory
230230
PRIVATE UMF_POOL_DISJOINT_ENABLED=1)

test/provider_os_memory.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
#include <umf/memory_provider.h>
1212
#include <umf/pools/pool_disjoint.h>
1313
#include <umf/providers/provider_os_memory.h>
14+
#ifdef UMF_POOL_JEMALLOC_ENABLED
15+
#include <umf/pools/pool_jemalloc.h>
16+
#endif
1417

1518
using umf_test::test;
1619

@@ -389,6 +392,10 @@ static std::vector<ipcTestParams> ipcTestParamsList = {
389392
{umfDisjointPoolOps(), &disjointParams, umfOsMemoryProviderOps(),
390393
&os_params, &hostAccessor, false},
391394
#endif
395+
#ifdef UMF_POOL_JEMALLOC_ENABLED
396+
{umfJemallocPoolOps(), nullptr, umfOsMemoryProviderOps(), &os_params,
397+
&hostAccessor, false},
398+
#endif
392399
};
393400

394401
INSTANTIATE_TEST_SUITE_P(osProviderTest, umfIpcTest,

0 commit comments

Comments
 (0)