File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,10 @@ if (ENABLE_MEMCHECK AND MEMORYCHECK_COMMAND)
77
77
string (REPLACE "/" "_" out ${name} )
78
78
add_executable (${out} ${CMAKE_CURRENT_LIST_DIR} /${name}.cpp )
79
79
add_test (${out} ${MEMORYCHECK_COMMAND} --leak-check=full --error-exitcode=1 ./${out} )
80
+ set_tests_properties (${out}
81
+ PROPERTIES
82
+ ENVIRONMENT ${scenario}
83
+ )
80
84
target_link_libraries (${out} gunit )
81
85
add_custom_command (TARGET ${out} COMMAND ${scenario} ./${out} --gtest_color=yes USES_TERMINAL )
82
86
endfunction ()
@@ -85,6 +89,10 @@ else()
85
89
string (REPLACE "/" "_" out ${name} )
86
90
add_executable (${out} ${CMAKE_CURRENT_LIST_DIR} /${name}.cpp )
87
91
add_test (${out} ./${out} )
92
+ set_tests_properties (${out}
93
+ PROPERTIES
94
+ ENVIRONMENT ${scenario}
95
+ )
88
96
target_link_libraries (${out} gunit )
89
97
add_custom_command (TARGET ${out} COMMAND ${scenario} ./${out} --gtest_color=yes USES_TERMINAL )
90
98
endfunction ()
You can’t perform that action at this time.
0 commit comments