Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e8a979f

Browse files
committed
[lldb] Disable DIL on TestSwiftClosureVarNotCaptured
(cherry picked from commit d85da23)
1 parent 1399c26 commit e8a979f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lldb/test/API/lang/swift/closures_var_not_captured/TestSwiftClosureVarNotCaptured.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ def get_to_bkpt(self, bkpt_name):
5454
@swiftTest
5555
def test_simple_closure(self):
5656
self.build()
57+
# rdar://158447239
58+
self.runCmd('settings set target.experimental.use-DIL false')
5759
(target, process, thread) = self.get_to_bkpt("break_simple_closure")
5860
check_not_captured_error(self, thread.frames[0], "var_in_foo", "func_1(arg:)")
5961
check_not_captured_error(self, thread.frames[0], "arg", "func_1(arg:)")
@@ -62,6 +64,8 @@ def test_simple_closure(self):
6264
@swiftTest
6365
def test_nested_closure(self):
6466
self.build()
67+
# rdar://158447239
68+
self.runCmd('settings set target.experimental.use-DIL false')
6569
(target, process, thread) = self.get_to_bkpt("break_double_closure_1")
6670
check_not_captured_error(self, thread.frames[0], "var_in_foo", "func_2(arg:)")
6771
check_not_captured_error(self, thread.frames[0], "arg", "func_2(arg:)")
@@ -88,6 +92,8 @@ def test_nested_closure(self):
8892
@skipIf(oslist=["windows", "linux"])
8993
def test_async_closure(self):
9094
self.build()
95+
# rdar://158447239
96+
self.runCmd('settings set target.experimental.use-DIL false')
9197
(target, process, thread) = self.get_to_bkpt("break_async_closure_1")
9298
check_not_captured_error(self, thread.frames[0], "var_in_foo", "func_3(arg:)")
9399
check_not_captured_error(self, thread.frames[0], "arg", "func_3(arg:)")
@@ -109,6 +115,8 @@ def test_async_closure(self):
109115
@swiftTest
110116
def test_ctor_class_closure(self):
111117
self.build()
118+
# rdar://158447239
119+
self.runCmd('settings set target.experimental.use-DIL false')
112120
(target, process, thread) = self.get_to_bkpt("break_ctor_class")
113121
check_not_captured_error(
114122
self, thread.frames[0], "input", "MY_CLASS.init(input:)"
@@ -166,6 +174,8 @@ def test_ctor_class_closure(self):
166174
@swiftTest
167175
def test_ctor_struct_closure(self):
168176
self.build()
177+
# rdar://158447239
178+
self.runCmd('settings set target.experimental.use-DIL false')
169179
(target, process, thread) = self.get_to_bkpt("break_ctor_struct")
170180
check_not_captured_error(
171181
self, thread.frames[0], "input", "MY_STRUCT.init(input:)"
@@ -223,6 +233,8 @@ def test_ctor_struct_closure(self):
223233
@swiftTest
224234
def test_ctor_enum_closure(self):
225235
self.build()
236+
# rdar://158447239
237+
self.runCmd('settings set target.experimental.use-DIL false')
226238
(target, process, thread) = self.get_to_bkpt("break_ctor_enum")
227239
check_not_captured_error(
228240
self, thread.frames[0], "input", "MY_ENUM.init(input:)"

0 commit comments

Comments
 (0)