From 2126595aef462184636a9b8a905a80755be0fc3a Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Tue, 16 Sep 2025 12:21:55 -0700 Subject: [PATCH] debug output --- .../swift/tripleDetection/TestSwiftTripleDetection.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lldb/test/API/lang/swift/tripleDetection/TestSwiftTripleDetection.py b/lldb/test/API/lang/swift/tripleDetection/TestSwiftTripleDetection.py index c87388e60a2ee..d511235e6d8c4 100644 --- a/lldb/test/API/lang/swift/tripleDetection/TestSwiftTripleDetection.py +++ b/lldb/test/API/lang/swift/tripleDetection/TestSwiftTripleDetection.py @@ -25,6 +25,16 @@ def test(self): bkpt = target.BreakpointCreateByName("main") process = target.LaunchSimple(None, None, self.get_process_working_directory()) self.expect("expression 1") + with open(types_log) as f: + import sys + for line in f: + s = "" + for c in line: + if ord(c) > 127: + s += '\\'+str(ord(c)) + else: + s+=c + sys.stderr.write(line) self.filecheck('platform shell cat "%s"' % types_log, __file__) # CHECK: {{SwiftASTContextForExpressions.*Module triple: ".*-apple-macos.[0-9.]+"}} # CHECK: {{SwiftASTContextForExpressions.*Target triple: ".*-apple-macos-unknown"}}