Skip to content

Commit c1b889f

Browse files
committed
cmake: replace string with env as a list
Needed for the following commit.
1 parent 0508724 commit c1b889f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/lapi/CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ lapi_tests_make_lua_path(LUA_PATH
1616
${CMAKE_CURRENT_SOURCE_DIR}/?.lua
1717
)
1818

19+
list(APPEND TEST_ENV
20+
"LUA_PATH=${LUA_PATH};"
21+
"LUA_CPATH=${LUA_CPATH};"
22+
"ASAN_OPTIONS=detect_odr_violation=0;"
23+
"LD_DYNAMIC_WEAK=1;"
24+
)
25+
1926
function(create_test)
2027
cmake_parse_arguments(
2128
FUZZ
@@ -45,7 +52,7 @@ function(create_test)
4552
)
4653
set_tests_properties(${test_name} PROPERTIES
4754
LABELS "lapi"
48-
ENVIRONMENT "LUA_PATH=${LUA_PATH};LUA_CPATH=${LUA_CPATH};ASAN_OPTIONS=detect_odr_violation=0;LD_DYNAMIC_WEAK=1"
55+
ENVIRONMENT "${TEST_ENV}"
4956
DEPENDS ${LUA_EXECUTABLE} ${LUZER_LIBRARY}
5057
)
5158
endfunction()

0 commit comments

Comments
 (0)