File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -120,8 +120,9 @@ function(add_umf_test)
120120 # * NAME - a name of the test
121121 # * SRCS - source files
122122 # * LIBS - libraries to be linked with
123+ # * ENVS - environment variables
123124 set (oneValueArgs NAME )
124- set (multiValueArgs SRCS LIBS)
125+ set (multiValueArgs SRCS LIBS ENVS )
125126 cmake_parse_arguments (
126127 ARG
127128 ""
@@ -143,6 +144,9 @@ function(add_umf_test)
143144 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} )
144145
145146 set_tests_properties (${TEST_NAME} PROPERTIES LABELS "umf" )
147+ if (ARG_ENVS)
148+ set_tests_properties (${TEST_NAME} PROPERTIES ENVIRONMENT ${ARG_ENVS} )
149+ endif ()
146150
147151 if (WINDOWS)
148152 # add PATH to DLL on Windows
@@ -526,6 +530,11 @@ add_umf_test(
526530 SRCS ipcAPI.cpp ${BA_SOURCES_FOR_TEST}
527531 LIBS ${UMF_UTILS_FOR_TEST} )
528532
533+ add_umf_test(
534+ NAME ipc_max_opened_limit
535+ SRCS ipcAPI.cpp ${BA_SOURCES_FOR_TEST}
536+ LIBS ${UMF_UTILS_FOR_TEST} ENVS "UMF_MAX_OPENED_IPC_HANDLES=10" )
537+
529538add_umf_test(NAME ipc_negative SRCS ipc_negative.cpp)
530539
531540function (add_umf_ipc_test)
You can’t perform that action at this time.
0 commit comments