@@ -1018,7 +1018,7 @@ else:
1018
1018
swift_reflection_test_name = 'swift-reflection-test' + variant_suffix
1019
1019
1020
1020
def use_interpreter_for_simple_runs ():
1021
- def make_simple_target_run (gyb = False , stdlib = False , parameterized = False , leaks = False ):
1021
+ def make_simple_target_run (gyb = False , stdlib = False , parameterized = False ):
1022
1022
result = ''
1023
1023
if gyb :
1024
1024
result += ('%empty-directory(%t) && '
@@ -1046,7 +1046,6 @@ def use_interpreter_for_simple_runs():
1046
1046
config .target_run_stdlib_swift = make_simple_target_run (stdlib = True )
1047
1047
config .target_run_simple_swift = make_simple_target_run ()
1048
1048
config .target_run_simple_swift_parameterized = make_simple_target_run (parameterized = True )
1049
- config .target_run_simple_leaks_swift_parameterized = make_simple_leaks_target_run (parameterized = True )
1050
1049
config .target_run_stdlib_swift_parameterized = make_simple_target_run (stdlib = True , parameterized = True )
1051
1050
config .target_run_simple_swiftgyb_parameterized = make_simple_target_run (gyb = True , parameterized = True )
1052
1051
config .available_features .add ('interpret' )
@@ -2286,11 +2285,6 @@ elif not kIsWindows:
2286
2285
lit_config .note ('Testing with the just-built libraries' )
2287
2286
2288
2287
lit_config .note ('Library load path: {0}' .format (os .path .pathsep .join (target_stdlib_path )))
2289
- config .target_run_with_leaks = (
2290
- "/usr/bin/env " +
2291
- construct_library_path_env (target_stdlib_path ) +
2292
- " xcrun leaks -atExit -- " +
2293
- config .target_run )
2294
2288
config .target_run = (
2295
2289
"/usr/bin/env " +
2296
2290
construct_library_path_env (target_stdlib_path ) +
@@ -2326,17 +2320,6 @@ if not getattr(config, 'target_run_simple_swift', None):
2326
2320
escape_for_substitute_captures (config .target_codesign ),
2327
2321
escape_for_substitute_captures (config .target_run ))
2328
2322
)
2329
- if not kIsWindows :
2330
- config .target_run_simple_leaks_swift_parameterized = SubstituteCaptures (
2331
- r"%%empty-directory(%%t) && "
2332
- r"%s %s %%s \1 -o %%t/a.out -module-name main && "
2333
- r"%s %%t/a.out && "
2334
- r"%s %%t/a.out"
2335
- % (escape_for_substitute_captures (config .target_build_swift ),
2336
- escape_for_substitute_captures (mcp_opt ),
2337
- escape_for_substitute_captures (config .target_codesign ),
2338
- escape_for_substitute_captures (config .target_run_with_leaks ))
2339
- )
2340
2323
config .target_fail_simple_swift_parameterized = SubstituteCaptures (
2341
2324
r"%%empty-directory(%%t) && "
2342
2325
r"%s %s %%s \1 -o %%t/a.out -module-name main && "
@@ -2512,9 +2495,6 @@ config.substitutions.append(('%target-run-simple-swiftgyb\(([^)]+)\)',
2512
2495
config .substitutions .append (('%target-run-simple-swiftgyb' , config .target_run_simple_swiftgyb ))
2513
2496
config .substitutions .append (('%target-run-simple-swift\(([^)]+)\)' ,
2514
2497
config .target_run_simple_swift_parameterized ))
2515
- if not kIsWindows :
2516
- config .substitutions .append (('%target-run-simple-leaks-swift\(([^)]+)\)' ,
2517
- config .target_run_simple_leaks_swift_parameterized ))
2518
2498
config .substitutions .append (('%target-fail-simple-swift\(([^)]+)\)' ,
2519
2499
config .target_fail_simple_swift_parameterized ))
2520
2500
config .substitutions .append (('%target-run-stdlib-swift\(([^)]+)\)' ,
0 commit comments