13
13
Test Swift support of ASan.
14
14
"""
15
15
import lldb
16
- import lldbsuite .test .decorators as decorators
16
+ from lldbsuite .test .decorators import *
17
17
import lldbsuite .test .lldbtest as lldbtest
18
18
import lldbsuite .test .lldbutil as lldbutil
19
19
from lldbsuite .test_event .build_exception import BuildError
@@ -25,14 +25,15 @@ class AsanSwiftTestCase(lldbtest.TestBase):
25
25
26
26
mydir = lldbtest .TestBase .compute_mydir (__file__ )
27
27
28
- @decorators . swiftTest
29
- @decorators . skipIfLinux
30
- @decorators . skipUnlessSwiftAddressSanitizer
28
+ @swiftTest
29
+ @skipIfLinux
30
+ @skipUnlessSwiftAddressSanitizer
31
31
def test_asan_swift (self ):
32
32
self .build (make_targets = ["asan" ])
33
33
self .do_test_asan ()
34
34
35
- @decorators .skipIf (oslist = decorators .no_match (["macosx" ]))
35
+ @skipIf (oslist = no_match (["macosx" ]))
36
+ @skipIf (macos_version = ["<" , "15.0" ])
36
37
def test_libsanitizers_swift (self ):
37
38
try :
38
39
self .build (make_targets = ["libsanitizers" ])
@@ -43,7 +44,6 @@ def test_libsanitizers_swift(self):
43
44
def setUp (self ):
44
45
lldbtest .TestBase .setUp (self )
45
46
self .main_source = "main.swift"
46
- self .main_source_spec = lldb .SBFileSpec (self .main_source )
47
47
self .line_breakpoint = lldbtest .line_number (
48
48
self .main_source , '// breakpoint' )
49
49
0 commit comments