@@ -25,9 +25,8 @@ class TestSwiftREPLExceptions(TestBase):
2525
2626 @skipUnlessDarwin
2727 @swiftTest
28- def test_set_repl_mode_exceptions (self ):
28+ def DISABLED_test_set_repl_mode_exceptions (self ):
2929 """ Test that SetREPLMode turns off trapping exceptions."""
30- return
3130 self .build ()
3231 self .main_source_file = lldb .SBFileSpec ("main.swift" )
3332 self .do_repl_mode_test ()
@@ -45,6 +44,8 @@ def do_repl_test(self):
4544 with open (self .getBuildArtifact ("sdkroot.txt" ), 'r' ) as f :
4645 sdk_root = f .readlines ()[0 ]
4746 self .assertGreater (len (sdk_root ), 0 )
47+ if sdk_root [- 1 ] == '\n ' :
48+ sdk_root = sdk_root [:- 1 ]
4849 build_dir = self .getBuildDir ()
4950 repl_args = [lldbtest_config .lldbExec , "-x" , "--repl=-enable-objc-interop -sdk %s -L%s -I%s" % (sdk_root , build_dir , build_dir )]
5051 repl_proc = subprocess .Popen (repl_args , stdin = subprocess .PIPE , stdout = subprocess .PIPE , cwd = build_dir )
@@ -67,7 +68,7 @@ def do_repl_mode_test(self):
6768 lldb .SBFileSpec (os .path .join (wd , filename )))
6869 self .assertFalse (err .Fail (), 'Failed to copy ' + filename )
6970 (target , process , thread , bkpt ) = lldbutil .run_to_source_breakpoint (self ,
70- "Set a breakpoint here" , self .main_source_file )
71+ "Set a breakpoint here" , self .main_source_file )
7172
7273 frame = thread .GetFrameAtIndex (0 )
7374 options = lldb .SBExpressionOptions ()
0 commit comments