@@ -1018,7 +1018,7 @@ else:
10181018swift_reflection_test_name = 'swift-reflection-test' + variant_suffix
10191019
10201020def 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 ):
10221022 result = ''
10231023 if gyb :
10241024 result += ('%empty-directory(%t) && '
@@ -1046,7 +1046,6 @@ def use_interpreter_for_simple_runs():
10461046 config .target_run_stdlib_swift = make_simple_target_run (stdlib = True )
10471047 config .target_run_simple_swift = make_simple_target_run ()
10481048 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 )
10501049 config .target_run_stdlib_swift_parameterized = make_simple_target_run (stdlib = True , parameterized = True )
10511050 config .target_run_simple_swiftgyb_parameterized = make_simple_target_run (gyb = True , parameterized = True )
10521051 config .available_features .add ('interpret' )
@@ -2286,11 +2285,6 @@ elif not kIsWindows:
22862285 lit_config .note ('Testing with the just-built libraries' )
22872286
22882287 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 )
22942288 config .target_run = (
22952289 "/usr/bin/env " +
22962290 construct_library_path_env (target_stdlib_path ) +
@@ -2326,17 +2320,6 @@ if not getattr(config, 'target_run_simple_swift', None):
23262320 escape_for_substitute_captures (config .target_codesign ),
23272321 escape_for_substitute_captures (config .target_run ))
23282322 )
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- )
23402323 config .target_fail_simple_swift_parameterized = SubstituteCaptures (
23412324 r"%%empty-directory(%%t) && "
23422325 r"%s %s %%s \1 -o %%t/a.out -module-name main && "
@@ -2512,9 +2495,6 @@ config.substitutions.append(('%target-run-simple-swiftgyb\(([^)]+)\)',
25122495config .substitutions .append (('%target-run-simple-swiftgyb' , config .target_run_simple_swiftgyb ))
25132496config .substitutions .append (('%target-run-simple-swift\(([^)]+)\)' ,
25142497 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 ))
25182498config .substitutions .append (('%target-fail-simple-swift\(([^)]+)\)' ,
25192499 config .target_fail_simple_swift_parameterized ))
25202500config .substitutions .append (('%target-run-stdlib-swift\(([^)]+)\)' ,
0 commit comments