Skip to content

Commit 0bf7876

Browse files
committed
Include proxy_lib_new_delete.h in the proxy library tests
Fixes: #350 Signed-off-by: Lukasz Dorau <[email protected]>
1 parent 8744390 commit 0bf7876

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

test/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ if(UMF_PROXY_LIB_ENABLED AND UMF_BUILD_SHARED_LIBRARY)
240240
SRCS memoryPoolAPI.cpp malloc_compliance_tests.cpp
241241
LIBS umf_proxy
242242
CFGS ${CONFIGS})
243+
target_compile_definitions(umf_test-proxy_lib_memoryPool
244+
PUBLIC UMF_PROXY_LIB_ENABLED=1)
243245
endif()
244246

245247
if(UMF_ENABLE_POOL_TRACKING)

test/memoryPoolAPI.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
#include <umf/memory_provider.h>
1515
#include <umf/pools/pool_proxy.h>
1616

17+
#ifdef UMF_PROXY_LIB_ENABLED
18+
#include <umf/proxy_lib_new_delete.h>
19+
#endif
20+
1721
#include <array>
1822
#include <string>
1923
#include <thread>

test/test_proxy_lib.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#include <malloc.h>
1212
#endif
1313

14+
#include <umf/proxy_lib_new_delete.h>
15+
1416
#include "base.hpp"
1517
#include "test_helpers.h"
1618

0 commit comments

Comments
 (0)