@@ -25,9 +25,8 @@ class TestSwiftREPLExceptions(TestBase):
25
25
26
26
@skipUnlessDarwin
27
27
@swiftTest
28
- def test_set_repl_mode_exceptions (self ):
28
+ def DISABLED_test_set_repl_mode_exceptions (self ):
29
29
""" Test that SetREPLMode turns off trapping exceptions."""
30
- return
31
30
self .build ()
32
31
self .main_source_file = lldb .SBFileSpec ("main.swift" )
33
32
self .do_repl_mode_test ()
@@ -45,6 +44,8 @@ def do_repl_test(self):
45
44
with open (self .getBuildArtifact ("sdkroot.txt" ), 'r' ) as f :
46
45
sdk_root = f .readlines ()[0 ]
47
46
self .assertGreater (len (sdk_root ), 0 )
47
+ if sdk_root [- 1 ] == '\n ' :
48
+ sdk_root = sdk_root [:- 1 ]
48
49
build_dir = self .getBuildDir ()
49
50
repl_args = [lldbtest_config .lldbExec , "-x" , "--repl=-enable-objc-interop -sdk %s -L%s -I%s" % (sdk_root , build_dir , build_dir )]
50
51
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):
67
68
lldb .SBFileSpec (os .path .join (wd , filename )))
68
69
self .assertFalse (err .Fail (), 'Failed to copy ' + filename )
69
70
(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 )
71
72
72
73
frame = thread .GetFrameAtIndex (0 )
73
74
options = lldb .SBExpressionOptions ()
0 commit comments