Skip to content

Commit e9d8fb4

Browse files
Merge pull request #10429 from felipepiovezan/felipe/mark_tests_as_swift_stable
[cherry-pick][lldb] Mark swift tests as such
2 parents ec20bd5 + 9f1730d commit e9d8fb4

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

lldb/test/API/lang/swift/async/tasks/TestSwiftTaskBacktrace.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@
66

77
class TestCase(TestBase):
88

9+
@swiftTest
910
def test_backtrace_task_variable(self):
1011
self.build()
1112
lldbutil.run_to_source_breakpoint(
1213
self, "break here", lldb.SBFileSpec("main.swift")
1314
)
1415
self.do_backtrace("task")
1516

17+
@swiftTest
1618
def test_backtrace_task_address(self):
1719
self.build()
1820
_, _, thread, _ = lldbutil.run_to_source_breakpoint(

lldb/test/API/lang/swift/async/tasks/TestSwiftTaskSelect.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@
66

77
class TestCase(TestBase):
88

9+
@swiftTest
910
def test_backtrace_selected_task_variable(self):
1011
self.build()
1112
lldbutil.run_to_source_breakpoint(
1213
self, "break here", lldb.SBFileSpec("main.swift")
1314
)
1415
self.do_backtrace_selected_task("task")
1516

17+
@swiftTest
1618
def test_backtrace_selected_task_address(self):
1719
self.build()
1820
_, _, thread, _ = lldbutil.run_to_source_breakpoint(
@@ -35,13 +37,15 @@ def do_backtrace_selected_task(self, arg):
3537
],
3638
)
3739

40+
@swiftTest
3841
def test_navigate_stack_of_selected_task_variable(self):
3942
self.build()
4043
_, process, thread, _ = lldbutil.run_to_source_breakpoint(
4144
self, "break here", lldb.SBFileSpec("main.swift")
4245
)
4346
self.do_test_navigate_selected_task_stack(process, "task")
4447

48+
@swiftTest
4549
def test_navigate_stack_of_selected_task_address(self):
4650
self.build()
4751
_, process, thread, _ = lldbutil.run_to_source_breakpoint(

lldb/test/API/lang/swift/async/tasks/info/TestSwiftTaskInfo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import re
77

8-
98
def _tail(output):
109
"""Delete the first line of output text."""
1110
result, _ = re.subn(r"^.*\n", "", output, count=1)
@@ -15,6 +14,7 @@ def _tail(output):
1514
class TestCase(TestBase):
1615

1716
@skipUnlessDarwin
17+
@swiftTest
1818
def test_compare_printed_task_variable_to_task_info(self):
1919
"""Compare the output of a printed Task to the output of `task info`."""
2020
self.build()
@@ -28,6 +28,7 @@ def test_compare_printed_task_variable_to_task_info(self):
2828
self.assertEqual(_tail(task_info_output), _tail(frame_variable_output))
2929

3030
@skipUnlessDarwin
31+
@swiftTest
3132
def test_compare_printed_task_variable_to_task_info_with_address(self):
3233
"""Compare the output of a printed Task to the output of `task info <address>`."""
3334
self.build()

0 commit comments

Comments
 (0)