Skip to content

Commit c94a38c

Browse files
committed
[lldb] More fixes to Task tests to support enqueued flag (NFC)
1 parent 960542b commit c94a38c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lldb/test/API/lang/swift/async/continuations/TestSwiftContinuationSynthetic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def test_unsafe_continuation_printing(self):
2020
textwrap.dedent(
2121
r"""
2222
\(UnsafeContinuation<Void, Never>\) cont = \{
23-
task = id:(\d+) flags:(?:running\|)?future \{
23+
task = id:(\d+) flags:(?:running\|)?(?:enqueued\|)?future \{
2424
address = 0x[0-9a-f]+
2525
id = \1
2626
enqueuePriority = 0
@@ -45,7 +45,7 @@ def test_checked_continuation_printing(self):
4545
textwrap.dedent(
4646
r"""
4747
\(CheckedContinuation<Int, Never>\) cont = \{
48-
task = id:(\d+) flags:(?:running\|)?future \{
48+
task = id:(\d+) flags:(?:running\|)?(?:enqueued\|)?future \{
4949
address = 0x[0-9a-f]+
5050
id = \1
5151
enqueuePriority = 0

lldb/test/API/lang/swift/async/formatters/task/children/TestSwiftSyntheticTaskChildren.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ def test(self):
2020
patterns=[
2121
textwrap.dedent(
2222
r"""
23-
\(UnsafeCurrentTask\) current_task = id:1 flags:(?:running\|)?future \{
23+
\(UnsafeCurrentTask\) current_task = id:1 flags:(?:running\|)?(?:enqueued\|)?future \{
2424
address = 0x[0-9a-f]+
2525
id = 1
2626
enqueuePriority = 0
2727
children = \{
28-
0 = id:2 flags:(?:running\|)?asyncLetTask\|childTask\|future {
28+
0 = id:2 flags:(?:running\|)?(?:enqueued\|)?asyncLetTask\|childTask\|future \{
2929
address = 0x[0-9a-f]+
3030
id = 2
3131
enqueuePriority = \.medium

0 commit comments

Comments
 (0)