From fc6db639fecf348d3dc964cf5fc0a47e2b655a63 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Fri, 15 Sep 2023 16:04:52 -0700 Subject: [PATCH 1/2] Turn python exception into assertion --- .../async/stepping/step-in/task-switch/TestSwiftTaskSwitch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/test/API/lang/swift/async/stepping/step-in/task-switch/TestSwiftTaskSwitch.py b/lldb/test/API/lang/swift/async/stepping/step-in/task-switch/TestSwiftTaskSwitch.py index abf418085013f..1753eed87e1c8 100644 --- a/lldb/test/API/lang/swift/async/stepping/step-in/task-switch/TestSwiftTaskSwitch.py +++ b/lldb/test/API/lang/swift/async/stepping/step-in/task-switch/TestSwiftTaskSwitch.py @@ -17,7 +17,7 @@ def test(self): function = target.FindFunctions("$s1a5entryO4mainyyYaFZTQ0_")[0].function instructions = list(function.GetInstructions(target)) - + self.assertGreater(len(instructions), 0) # Expected to be a trampoline that tail calls `swift_task_switch`. self.assertIn("swift_task_switch", instructions[-1].GetComment(target)) From 11502e93888e9b245d26f9040f12896a1c80004c Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Fri, 15 Sep 2023 16:05:08 -0700 Subject: [PATCH 2/2] Temporarily XFAIL test while investigation is pending --- .../async/stepping/step-in/task-switch/TestSwiftTaskSwitch.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lldb/test/API/lang/swift/async/stepping/step-in/task-switch/TestSwiftTaskSwitch.py b/lldb/test/API/lang/swift/async/stepping/step-in/task-switch/TestSwiftTaskSwitch.py index 1753eed87e1c8..9ea11ced402c7 100644 --- a/lldb/test/API/lang/swift/async/stepping/step-in/task-switch/TestSwiftTaskSwitch.py +++ b/lldb/test/API/lang/swift/async/stepping/step-in/task-switch/TestSwiftTaskSwitch.py @@ -7,6 +7,7 @@ class TestCase(lldbtest.TestBase): @swiftTest @skipIf(oslist=["windows", "linux"]) + @expectedFailureAll(bugnumber='rdar://115576769') def test(self): """Test conditions for async step-in.""" self.build()