Skip to content

Commit 42c1a56

Browse files
committed
Enable umfIpcTest for OS provider with jemalloc
1 parent b25feb8 commit 42c1a56

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

test/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ if(LINUX AND (NOT UMF_DISABLE_HWLOC)) # OS-specific functions are implemented
242242
add_umf_test(
243243
NAME provider_os_memory
244244
SRCS provider_os_memory.cpp ${BA_SOURCES_FOR_TEST}
245-
LIBS ${UMF_UTILS_FOR_TEST})
245+
LIBS ${UMF_UTILS_FOR_TEST} ${LIB_JEMALLOC_POOL})
246246
if(UMF_BUILD_LIBUMF_POOL_DISJOINT)
247247
target_compile_definitions(umf_test-provider_os_memory
248248
PRIVATE UMF_POOL_DISJOINT_ENABLED=1)

test/provider_os_memory.cpp

+7
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)