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 @@ -116,8 +116,9 @@ function(add_umf_test)
116
116
# * NAME - a name of the test
117
117
# * SRCS - source files
118
118
# * LIBS - libraries to be linked with
119
+ # * ENVS - environment variables
119
120
set (oneValueArgs NAME )
120
- set (multiValueArgs SRCS LIBS )
121
+ set (multiValueArgs SRCS LIBS ENVS )
121
122
cmake_parse_arguments (
122
123
ARG
123
124
""
@@ -139,6 +140,9 @@ function(add_umf_test)
139
140
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} )
140
141
141
142
set_tests_properties (${TEST_NAME} PROPERTIES LABELS "umf" )
143
+ if (ARG_ENVS )
144
+ set_tests_properties (${TEST_NAME} PROPERTIES ENVIRONMENT ${ARG_ENVS} )
145
+ endif ()
142
146
143
147
if (WINDOWS )
144
148
# add PATH to DLL on Windows
@@ -515,6 +519,11 @@ add_umf_test(
515
519
SRCS ipcAPI.cpp ${BA_SOURCES_FOR_TEST}
516
520
LIBS ${UMF_UTILS_FOR_TEST} )
517
521
522
+ add_umf_test (
523
+ NAME ipc_max_opened_limit
524
+ SRCS ipcAPI.cpp ${BA_SOURCES_FOR_TEST}
525
+ LIBS ${UMF_UTILS_FOR_TEST} ENVS "UMF_MAX_OPENED_IPC_HANDLES=10" )
526
+
518
527
add_umf_test (NAME ipc_negative SRCS ipc_negative.cpp )
519
528
520
529
function (add_umf_ipc_test )
You can’t perform that action at this time.
0 commit comments