Skip to content

Commit 2126595

Browse files
committed
debug output
1 parent 8135a06 commit 2126595

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lldb/test/API/lang/swift/tripleDetection/TestSwiftTripleDetection.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ def test(self):
2525
bkpt = target.BreakpointCreateByName("main")
2626
process = target.LaunchSimple(None, None, self.get_process_working_directory())
2727
self.expect("expression 1")
28+
with open(types_log) as f:
29+
import sys
30+
for line in f:
31+
s = ""
32+
for c in line:
33+
if ord(c) > 127:
34+
s += '\\'+str(ord(c))
35+
else:
36+
s+=c
37+
sys.stderr.write(line)
2838
self.filecheck('platform shell cat "%s"' % types_log, __file__)
2939
# CHECK: {{SwiftASTContextForExpressions.*Module triple: ".*-apple-macos.[0-9.]+"}}
3040
# CHECK: {{SwiftASTContextForExpressions.*Target triple: ".*-apple-macos-unknown"}}

0 commit comments

Comments
 (0)