File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ with section("parse"):
26
26
'kwargs': {
27
27
'NAME': '*',
28
28
'SRCS': '*',
29
- 'LIBS': '*'}},
29
+ 'LIBS': '*',
30
+ 'ENVS': '*'}},
30
31
'add_umf_library': {
31
32
"pargs": 0,
32
33
"flags": [],
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,12 @@ 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}
526
+ ENVS "UMF_MAX_OPENED_IPC_HANDLES=10" )
527
+
518
528
add_umf_test (NAME ipc_negative SRCS ipc_negative.cpp )
519
529
520
530
function (add_umf_ipc_test )
You can’t perform that action at this time.
0 commit comments