@@ -168,7 +168,7 @@ if(UMF_BUILD_LIBUMF_POOL_DISJOINT)
168
168
endif ()
169
169
170
170
if (UMF_BUILD_LIBUMF_POOL_DISJOINT
171
- AND UMF_BUILD_LIBUMF_POOL_JEMALLOC
171
+ AND UMF_POOL_JEMALLOC_ENABLED
172
172
AND UMF_POOL_SCALABLE_ENABLED
173
173
AND (NOT UMF_DISABLE_HWLOC))
174
174
add_umf_test(
@@ -177,7 +177,7 @@ if(UMF_BUILD_LIBUMF_POOL_DISJOINT
177
177
LIBS disjoint_pool jemalloc_pool ${JEMALLOC_LIBRARIES} )
178
178
endif ()
179
179
180
- if (UMF_BUILD_LIBUMF_POOL_JEMALLOC AND (NOT UMF_DISABLE_HWLOC))
180
+ if (UMF_POOL_JEMALLOC_ENABLED AND (NOT UMF_DISABLE_HWLOC))
181
181
add_umf_test(
182
182
NAME jemalloc_pool
183
183
SRCS pools/jemalloc_pool.cpp malloc_compliance_tests.cpp
@@ -190,8 +190,7 @@ if(UMF_POOL_SCALABLE_ENABLED AND (NOT UMF_DISABLE_HWLOC))
190
190
endif ()
191
191
192
192
if (LINUX AND (NOT UMF_DISABLE_HWLOC)) # OS-specific functions are implemented
193
- # only for
194
- # Linux now
193
+ # only for Linux now
195
194
if (PkgConfig_FOUND)
196
195
pkg_check_modules(LIBNUMA numa)
197
196
endif ()
@@ -257,6 +256,22 @@ if(LINUX AND (NOT UMF_DISABLE_HWLOC)) # OS-specific functions are implemented
257
256
NAME provider_file_memory
258
257
SRCS provider_file_memory.cpp
259
258
LIBS ${UMF_UTILS_FOR_TEST} )
259
+
260
+ # This test requires Linux-only file memory provider
261
+ if (UMF_POOL_JEMALLOC_ENABLED)
262
+ add_umf_test(
263
+ NAME jemalloc_coarse_file
264
+ SRCS pools/jemalloc_coarse_file.cpp malloc_compliance_tests.cpp
265
+ LIBS jemalloc_pool)
266
+ endif ()
267
+
268
+ # This test requires Linux-only file memory provider
269
+ if (UMF_POOL_SCALABLE_ENABLED)
270
+ add_umf_test(
271
+ NAME scalable_coarse_file SRCS pools/scalable_coarse_file.cpp
272
+ malloc_compliance_tests.cpp)
273
+ endif ()
274
+
260
275
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND UMF_BUILD_FUZZTESTS)
261
276
add_subdirectory (fuzz)
262
277
endif ()
0 commit comments