Skip to content

Commit 846c433

Browse files
Merge pull request swiftlang#9794 from swiftlang/eng/m_borsa/lldb_libsanitizers_swift_test_fix_cherry_pick
🍒 TestAsanSwift fix
2 parents 207b685 + 4765212 commit 846c433

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)