diff --git a/lldb/test/API/functionalities/asan/swift/TestAsanSwift.py b/lldb/test/API/functionalities/asan/swift/TestAsanSwift.py index 5ef1e3d3b2c88..938d979d6757f 100644 --- a/lldb/test/API/functionalities/asan/swift/TestAsanSwift.py +++ b/lldb/test/API/functionalities/asan/swift/TestAsanSwift.py @@ -74,12 +74,14 @@ def do_test_asan(self): # interceptors. self.runCmd("continue") + self.runCmd("expr let $targetptr = ptr") + # the stop reason of the thread should be breakpoint. self.expect("thread list", lldbtest.STOPPED_DUE_TO_BREAKPOINT, substrs=['stopped', 'stop reason = breakpoint']) self.expect( - "memory history `ptr`", + "memory history $targetptr", substrs=[ 'Memory allocated by Thread 1', 'main.swift']) @@ -105,7 +107,7 @@ def do_test_asan(self): break self.expect( - "memory history `ptr`", + "memory history $targetptr", substrs=[ 'Memory allocated by Thread 1', 'main.swift'])