22from lldbsuite .test .decorators import *
33import lldbsuite .test .lldbtest as lldbtest
44import lldbsuite .test .lldbutil as lldbutil
5- import os
65import unittest2
76
8-
97class TestSwiftSystemFramework (lldbtest .TestBase ):
108
119 mydir = lldbtest .TestBase .compute_mydir (__file__ )
10+ NO_DEBUG_INFO_TESTCASE = True
1211
1312 @swiftTest
1413 @skipIf (oslist = no_match (["macosx" ]))
@@ -22,16 +21,7 @@ def test_system_framework(self):
2221 self .runCmd ('log enable lldb types -f "%s"' % log )
2322 self .expect ("settings set target.use-all-compiler-flags true" )
2423 self .expect ("expression -- 0" )
25- pos = 0
26- neg = 0
27- import io
28- with open (log , "r" , encoding = 'utf-8' ) as logfile :
29- for line in logfile :
30- if "-- rejecting framework path " in line :
31- pos += 1
32- elif ("reflection metadata" not in line ) and \
33- ("/System/Library/Frameworks" in line ):
34- neg += 1
35-
36- self .assertGreater (pos , 0 , "sanity check failed" )
37- self .assertEqual (neg , 0 , "found /System/Library/Frameworks in log" )
24+ self .filecheck ('platform shell cat "%s"' % log , __file__ )
25+ # CHECK: SwiftASTContextForExpressions{{.*}}-- rejecting framework path
26+ # CHECK: SwiftASTContextForExpressions{{.*}}LogConfiguration()
27+ # CHECK-NOT: LogConfiguration(){{.*}}/System/Library/Frameworks
0 commit comments