Skip to content

Commit 5bb4cc6

Browse files
committed
Additional test updates
1 parent 5b5fd2c commit 5bb4cc6

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def test_unsafe_continuation_printing(self):
2424
address = 0x[0-9a-f]+
2525
id = \1
2626
enqueuePriority = 0
27+
parent = nil
2728
children = \{\}
2829
\}
2930
\}
@@ -49,6 +50,7 @@ def test_checked_continuation_printing(self):
4950
address = 0x[0-9a-f]+
5051
id = \1
5152
enqueuePriority = 0
53+
parent = nil
5254
children = \{\}
5355
\}
5456
\}

lldb/test/API/lang/swift/async/formatters/task/TestSwiftTaskSyntheticProvider.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def test_top_level_task(self):
2525
address = 0x[0-9a-f]+
2626
id = \1
2727
enqueuePriority = \.medium
28+
parent = nil
2829
children = \{\}
2930
}
3031
"""
@@ -49,6 +50,7 @@ def test_current_task(self):
4950
address = 0x[0-9a-f]+
5051
id = \1
5152
enqueuePriority = \.medium
53+
parent = 0x[0-9a-f]+ \{\}
5254
children = \{\}
5355
\}
5456
"""

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,16 @@ def test(self):
2121
textwrap.dedent(
2222
r"""
2323
\(UnsafeCurrentTask\) current_task = id:1 flags:(?:running|enqueued) \{
24-
address = 0x[0-9a-f]+
24+
address = (0x[0-9a-f]+)
2525
id = 1
2626
enqueuePriority = 0
27+
parent = nil
2728
children = \{
2829
0 = id:2 flags:(?:running\|)?(?:enqueued\|)?asyncLetTask \{
2930
address = 0x[0-9a-f]+
3031
id = 2
3132
enqueuePriority = \.medium
33+
parent = \1 \{\}
3234
children = \{\}
3335
\}
3436
\}

lldb/test/API/lang/swift/async/taskgroups/TestSwiftTaskGroupSynthetic.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,21 @@ def do_test_print(self):
3636
address = 0x[0-9a-f]+
3737
id = \1
3838
enqueuePriority = \.medium
39+
parent = (.+)
3940
children = \{\}
4041
\}
4142
\[1\] = id:([1-9]\d*) flags:(?:running\|)?(?:enqueued\|)?groupChildTask \{
4243
address = 0x[0-9a-f]+
43-
id = \2
44+
id = \3
4445
enqueuePriority = \.medium
46+
parent = \2
4547
children = \{\}
4648
\}
4749
\[2\] = id:([1-9]\d*) flags:(?:running\|)?(?:enqueued\|)?groupChildTask \{
4850
address = 0x[0-9a-f]+
49-
id = \3
51+
id = \4
5052
enqueuePriority = \.medium
53+
parent = \2
5154
children = \{\}
5255
\}
5356
\}

0 commit comments

Comments
 (0)