File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,6 +77,10 @@ if (ENABLE_MEMCHECK AND MEMORYCHECK_COMMAND)
7777 string (REPLACE "/" "_" out ${name} )
7878 add_executable (${out} ${CMAKE_CURRENT_LIST_DIR} /${name}.cpp )
7979 add_test (${out} ${MEMORYCHECK_COMMAND} --leak-check=full --error-exitcode=1 ./${out} )
80+ set_tests_properties (${out}
81+ PROPERTIES
82+ ENVIRONMENT ${scenario}
83+ )
8084 target_link_libraries (${out} gunit )
8185 add_custom_command (TARGET ${out} COMMAND ${scenario} ./${out} --gtest_color=yes USES_TERMINAL )
8286 endfunction ()
@@ -85,6 +89,10 @@ else()
8589 string (REPLACE "/" "_" out ${name} )
8690 add_executable (${out} ${CMAKE_CURRENT_LIST_DIR} /${name}.cpp )
8791 add_test (${out} ./${out} )
92+ set_tests_properties (${out}
93+ PROPERTIES
94+ ENVIRONMENT ${scenario}
95+ )
8896 target_link_libraries (${out} gunit )
8997 add_custom_command (TARGET ${out} COMMAND ${scenario} ./${out} --gtest_color=yes USES_TERMINAL )
9098 endfunction ()
You can’t perform that action at this time.
0 commit comments