Skip to content

Disable proxy lib tests on Windows Debug #401

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .cmake-format
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ with section("parse"):
'kwargs': {
'NAME': '*',
'SRCS': '*',
'LIBS': '*'}},
'LIBS': '*',
'CFGS': '*'}},
'add_umf_library': {
"pargs": 0,
"flags": [],
Expand Down
15 changes: 11 additions & 4 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function(add_umf_test)
# * SRCS - source files
# * LIBS - libraries to be linked with
set(oneValueArgs NAME)
set(multiValueArgs SRCS LIBS)
set(multiValueArgs SRCS LIBS CFGS)
cmake_parse_arguments(
ARG
""
Expand Down Expand Up @@ -73,6 +73,7 @@ function(add_umf_test)
add_test(
NAME ${TEST_NAME}
COMMAND ${TEST_TARGET_NAME}
CONFIGURATIONS ${ARG_CFGS}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})

set_tests_properties(${TEST_NAME} PROPERTIES LABELS "umf")
Expand Down Expand Up @@ -223,14 +224,20 @@ add_umf_test(

# tests for the proxy library
if(UMF_PROXY_LIB_ENABLED AND UMF_BUILD_SHARED_LIBRARY)
# The CFGS variable can be removed when the issue of running the proxy
# library on Windows with Debug configuration is fixed.
if(WINDOWS)
set(CONFIGS Release RelWithDebInfo MinSizeRel)
endif()
add_umf_test(
NAME proxy_lib_basic
SRCS test_proxy_lib.cpp
LIBS umf_proxy)

LIBS umf_proxy
CFGS ${CONFIGS})
# the memoryPool test run with the proxy library
add_umf_test(
NAME proxy_lib_memoryPool
SRCS memoryPoolAPI.cpp malloc_compliance_tests.cpp
LIBS umf_proxy)
LIBS umf_proxy
CFGS ${CONFIGS})
endif()