File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
lldb/test/API/lang/swift/tripleDetection Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -25,16 +25,16 @@ def test(self):
25
25
bkpt = target .BreakpointCreateByName ("main" )
26
26
process = target .LaunchSimple (None , None , self .get_process_working_directory ())
27
27
self .expect ("expression 1" )
28
- with open (types_log ) as f :
28
+ with open (types_log , 'rb' ) as f :
29
29
import sys
30
- for line in f :
30
+ for line in f . readlines () :
31
31
s = ""
32
32
for c in line :
33
- if ord ( c ) > 127 :
34
- s += '\\ ' + str (ord ( c ) )
33
+ if c > 127 :
34
+ s += '\\ ' + str (c )
35
35
else :
36
- s += c
37
- sys .stderr .write (line )
36
+ s += str ( chr ( c ))
37
+ sys .stderr .write (s )
38
38
self .filecheck ('platform shell cat "%s"' % types_log , __file__ )
39
39
# CHECK: {{SwiftASTContextForExpressions.*Module triple: ".*-apple-macos.[0-9.]+"}}
40
40
# CHECK: {{SwiftASTContextForExpressions.*Target triple: ".*-apple-macos-unknown"}}
You can’t perform that action at this time.
0 commit comments