Skip to content

Commit 864ea96

Browse files
committed
[lldb] Handle suspend resume partial functions in TestSwiftStepInAsync (#2846)
(cherry picked from commit a8faa34)
1 parent cc4cda8 commit 864ea96

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lldb/test/API/lang/swift/async/stepping/step-in/TestSwiftStepInAsync.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ def test(self):
5454
process.Continue()
5555
continue
5656

57-
self.assertEqual(caller_after, caller_before)
57+
# The entry function is missing this prefix dedicating resume functions.
58+
prefix = re.compile(r'^\([0-9]+\) (await|suspend) resume partial function for ')
59+
self.assertEqual(prefix.sub('', caller_after),
60+
prefix.sub('', caller_before))
5861
num_async_steps += 1
5962

6063
self.assertGreater(num_async_steps, 0)

0 commit comments

Comments
 (0)