Skip to content

Commit 4765212

Browse files
author
Mariusz Borsa
committed
🍒 TestAsanSwift fix
Original PR: #9791 Apparently lldb doesn't tolerate backtick notation with function calls included. But it only happens when invoked from the test (script) - if I invoke "memory history `__asan_get_report_address()'" from lldb command line, it works fine. Maybe it's some escaping issue - in any case, I changed it to use temporary variable and verified that the automated test passes. rdar://139744655 (cherry picked from commit b4ccdee)
1 parent 207b685 commit 4765212

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lldb/test/API/functionalities/asan/swift/TestAsanSwift.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,10 @@ def do_test_libsanitizers(self):
134134
thread.GetStopReason(),
135135
lldb.eStopReasonInstrumentation)
136136

137+
self.runCmd("expr long $ar = (long)__asan_get_report_address()")
138+
137139
self.expect(
138-
"memory history `__asan_get_report_address()`",
140+
"memory history $ar",
139141
substrs=[
140142
'Memory allocated by Thread 1',
141143
'main.swift'])

0 commit comments

Comments
 (0)