File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,15 @@ add_library(util util.c)
23
23
add_compile_definitions (REFERENCE_FILES_DIR=\"${REFERENCE_FILES_DIR} \")
24
24
add_compile_definitions (FIXTURES_DIR=\"${FIXTURES_DIR} \")
25
25
26
+ set (runtime "WITH_CMAKE=set:YES;OBJC_DISABLE_INITIALIZE_FORK_SAFETY=set:YES;srcdir=set:${CMAKE_CURRENT_SOURCE_DIR} ;top_srcdir=set:${CMAKE_SOURCE_DIR} ;top_builddir=set:${CMAKE_BINARY_DIR} " )
27
+
26
28
if (BASH_PROGRAM AND ENABLE_TESTING_SHELL)
27
29
foreach (shell_file ${shell_files} )
28
30
file (REAL_PATH ${shell_file} shell_name)
29
31
string (REGEX REPLACE ${ext_pattern} "" shell_name ${shell_file} )
30
32
add_test (${shell_name} ${BASH_PROGRAM} ${shell_file} )
31
33
set_property (TEST ${shell_name}
32
- PROPERTY ENVIRONMENT_MODIFICATION "OBJC_DISABLE_INITIALIZE_FORK_SAFETY=set:YES;srcdir=set: ${CMAKE_CURRENT_SOURCE_DIR} ;top_srcdir=set: ${CMAKE_SOURCE_DIR} ;top_builddir=set: ${CMAKE_BINARY_DIR } " )
34
+ PROPERTY ENVIRONMENT_MODIFICATION "${runtime } " )
33
35
endforeach ()
34
36
endif ()
35
37
@@ -62,13 +64,12 @@ foreach(source_file ${source_files})
62
64
)
63
65
add_test (${test_executable} ${test_executable} )
64
66
set_tests_properties (${test_executable}
65
- PROPERTIES
66
- TIMEOUT 240)
67
+ PROPERTIES TIMEOUT 240)
67
68
set_tests_properties (${test_executable}
68
- PROPERTIES
69
- SKIP_RETURN_CODE 127)
69
+ PROPERTIES
70
+ SKIP_RETURN_CODE 127)
70
71
71
72
set (ENV{OBJC_DISABLE_INITIALIZE_FORK_SAFETY} "YES" )
72
73
set_property (TEST ${test_executable}
73
- PROPERTY ENVIRONMENT_MODIFICATION "WITH_CMAKE=set:YES;OBJC_DISABLE_INITIALIZE_FORK_SAFETY=set:YES;srcdir=set: ${CMAKE_CURRENT_SOURCE_DIR} ;top_srcdir=set: ${CMAKE_SOURCE_DIR } " )
74
+ PROPERTY ENVIRONMENT_MODIFICATION "${runtime } " )
74
75
endforeach ()
You can’t perform that action at this time.
0 commit comments