2
2
from lldbsuite .test .decorators import *
3
3
import lldbsuite .test .lldbtest as lldbtest
4
4
import lldbsuite .test .lldbutil as lldbutil
5
- import os
6
5
import unittest2
7
6
8
-
9
7
class TestSwiftSystemFramework (lldbtest .TestBase ):
10
8
11
9
mydir = lldbtest .TestBase .compute_mydir (__file__ )
10
+ NO_DEBUG_INFO_TESTCASE = True
12
11
13
12
@swiftTest
14
13
@skipIf (oslist = no_match (["macosx" ]))
@@ -22,16 +21,7 @@ def test_system_framework(self):
22
21
self .runCmd ('log enable lldb types -f "%s"' % log )
23
22
self .expect ("settings set target.use-all-compiler-flags true" )
24
23
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