@@ -97,7 +97,7 @@ def get_simulator_command(run_os, run_cpu, sdk_path):
97
97
else :
98
98
return "simctl spawn --standalone 'iPhone 8'"
99
99
elif run_os == 'tvos' :
100
- return "simctl spawn --standalone 'Apple TV 4K '"
100
+ return "simctl spawn --standalone 'Apple TV'"
101
101
elif run_os == 'watchos' :
102
102
if run_cpu == "i386" :
103
103
if min (darwin_get_watchos_sim_vers ()) > 6.2 :
@@ -2128,6 +2128,13 @@ config.substitutions.append(('%FileCheck', run_filecheck))
2128
2128
config .substitutions .append (('%raw-FileCheck' , shell_quote (config .filecheck )))
2129
2129
config .substitutions .append (('%import-libdispatch' , getattr (config , 'import_libdispatch' , '' )))
2130
2130
2131
+ # Disabe COW sanity checks in the swift runtime by default.
2132
+ # (But it's required to set this environment variable to something)
2133
+ config .environment ['SWIFT_DEBUG_ENABLE_COW_CHECKS' ] = 'false'
2134
+
2135
+ # Add this to the command which runs an executable to enable COW checks in the swift runtime.
2136
+ config .substitutions .append (('%enable-cow-checking' , TARGET_ENV_PREFIX + 'SWIFT_DEBUG_ENABLE_COW_CHECKS=true;' ))
2137
+
2131
2138
if config .lldb_build_root != "" :
2132
2139
lldb_python_path = get_lldb_python_path (config .lldb_build_root )
2133
2140
lldb_python_interpreter = get_lldb_python_interpreter (config .lldb_build_root )
@@ -2152,9 +2159,6 @@ config.environment[TARGET_ENV_PREFIX + 'SWIFT_DETERMINISTIC_HASHING'] = '1'
2152
2159
# Enable malloc scribble during tests by default.
2153
2160
config .environment [TARGET_ENV_PREFIX + 'SWIFT_DEBUG_ENABLE_MALLOC_SCRIBBLE' ] = 'YES'
2154
2161
2155
- # Enable COW sanity checks in the swift runtime by default.
2156
- config .environment ['SWIFT_DEBUG_ENABLE_COW_CHECKS' ] = 'true'
2157
-
2158
2162
# Run lsb_release on the target to be tested and return the results.
2159
2163
def linux_get_lsb_release ():
2160
2164
lsb_release_path = '/usr/bin/lsb_release'
0 commit comments