Skip to content

Commit cb34fb7

Browse files
committed
[lldb] Annotate remaining swift tests with @swifttest
1 parent 86b7ccb commit cb34fb7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lldb/test/API/commands/dwim-print/swift/TestDWIMPrintSwift.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
from lldbsuite.test.decorators import *
88
import lldbsuite.test.lldbutil as lldbutil
99

10-
1110
class TestCase(TestBase):
11+
@swiftTest
1212
def test_swift_po_address(self):
1313
self.build()
1414
_, _, thread, _ = lldbutil.run_to_source_breakpoint(
@@ -20,6 +20,7 @@ def test_swift_po_address(self):
2020
self.expect(f"dwim-print -O -- 0x{hex_addr}", patterns=[f"Object@0x0*{hex_addr}"])
2121
self.expect(f"dwim-print -O -- {addr}", patterns=[f"Object@0x0*{hex_addr}"])
2222

23+
@swiftTest
2324
def test_swift_po_non_address_hex(self):
2425
"""No special handling of non-memory integer values."""
2526
self.build()

lldb/test/API/functionalities/breakpoint/swift_exception/TestExpressionErrorBreakpoint.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,29 @@ class TestSwiftErrorBreakpoint(TestBase):
2828
@swiftTest
2929
def test_swift_error_no_typename(self):
3030
"""Tests that swift error throws are correctly caught by the Swift Error breakpoint"""
31+
self.build()
3132
self.do_tests(None, True)
3233

3334
@swiftTest
3435
def test_swift_error_matching_base_typename(self):
3536
"""Tests that swift error throws are correctly caught by the Swift Error breakpoint"""
37+
self.build()
3638
self.do_tests("EnumError", True)
3739

3840
@swiftTest
3941
def test_swift_error_matching_full_typename(self):
4042
"""Tests that swift error throws are correctly caught by the Swift Error breakpoint"""
43+
self.build()
4144
self.do_tests("a.EnumError", True)
4245

4346
@swiftTest
4447
def test_swift_error_bogus_typename(self):
4548
"""Tests that swift error throws are correctly caught by the Swift Error breakpoint"""
49+
self.build()
4650
self.do_tests("NoSuchErrorHere", False)
4751

4852
def setUp(self):
4953
TestBase.setUp(self)
50-
self.build()
5154

5255
def do_tests(self, typename, should_stop):
5356
self.do_test(typename, should_stop, self.create_breakpoint_with_api)

0 commit comments

Comments
 (0)