@@ -1010,7 +1010,7 @@ else:
1010
1010
swift_reflection_test_name = 'swift-reflection-test' + variant_suffix
1011
1011
1012
1012
def use_interpreter_for_simple_runs ():
1013
- def make_simple_target_run (gyb = False , stdlib = False , parameterized = False , leaks = False ):
1013
+ def make_simple_target_run (gyb = False , stdlib = False , parameterized = False ):
1014
1014
result = ''
1015
1015
if gyb :
1016
1016
result += ('%empty-directory(%t) && '
@@ -1038,7 +1038,6 @@ def use_interpreter_for_simple_runs():
1038
1038
config .target_run_stdlib_swift = make_simple_target_run (stdlib = True )
1039
1039
config .target_run_simple_swift = make_simple_target_run ()
1040
1040
config .target_run_simple_swift_parameterized = make_simple_target_run (parameterized = True )
1041
- config .target_run_simple_leaks_swift_parameterized = make_simple_leaks_target_run (parameterized = True )
1042
1041
config .target_run_stdlib_swift_parameterized = make_simple_target_run (stdlib = True , parameterized = True )
1043
1042
config .target_run_simple_swiftgyb_parameterized = make_simple_target_run (gyb = True , parameterized = True )
1044
1043
config .available_features .add ('interpret' )
@@ -2278,11 +2277,6 @@ elif not kIsWindows:
2278
2277
lit_config .note ('Testing with the just-built libraries' )
2279
2278
2280
2279
lit_config .note ('Library load path: {0}' .format (os .path .pathsep .join (target_stdlib_path )))
2281
- config .target_run_with_leaks = (
2282
- "/usr/bin/env " +
2283
- construct_library_path_env (target_stdlib_path ) +
2284
- " xcrun leaks -atExit -- " +
2285
- config .target_run )
2286
2280
config .target_run = (
2287
2281
"/usr/bin/env " +
2288
2282
construct_library_path_env (target_stdlib_path ) +
@@ -2318,16 +2312,6 @@ if not getattr(config, 'target_run_simple_swift', None):
2318
2312
escape_for_substitute_captures (config .target_codesign ),
2319
2313
escape_for_substitute_captures (config .target_run ))
2320
2314
)
2321
- config .target_run_simple_leaks_swift_parameterized = SubstituteCaptures (
2322
- r"%%empty-directory(%%t) && "
2323
- r"%s %s %%s \1 -o %%t/a.out -module-name main && "
2324
- r"%s %%t/a.out && "
2325
- r"%s %%t/a.out"
2326
- % (escape_for_substitute_captures (config .target_build_swift ),
2327
- escape_for_substitute_captures (mcp_opt ),
2328
- escape_for_substitute_captures (config .target_codesign ),
2329
- escape_for_substitute_captures (config .target_run_with_leaks ))
2330
- )
2331
2315
config .target_fail_simple_swift_parameterized = SubstituteCaptures (
2332
2316
r"%%empty-directory(%%t) && "
2333
2317
r"%s %s %%s \1 -o %%t/a.out -module-name main && "
@@ -2503,8 +2487,6 @@ config.substitutions.append(('%target-run-simple-swiftgyb\(([^)]+)\)',
2503
2487
config .substitutions .append (('%target-run-simple-swiftgyb' , config .target_run_simple_swiftgyb ))
2504
2488
config .substitutions .append (('%target-run-simple-swift\(([^)]+)\)' ,
2505
2489
config .target_run_simple_swift_parameterized ))
2506
- config .substitutions .append (('%target-run-simple-leaks-swift\(([^)]+)\)' ,
2507
- config .target_run_simple_leaks_swift_parameterized ))
2508
2490
config .substitutions .append (('%target-fail-simple-swift\(([^)]+)\)' ,
2509
2491
config .target_fail_simple_swift_parameterized ))
2510
2492
config .substitutions .append (('%target-run-stdlib-swift\(([^)]+)\)' ,
0 commit comments