Skip to content

Commit dce7cc9

Browse files
authored
Merge pull request #10024 from swiftlang/eng/m_borsa/lldb_asan_swift_test_fix
[lldb][ASAN][Swift] Do not use backticks in tests
2 parents 344c7bf + 578efae commit dce7cc9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,14 @@ def do_test_asan(self):
7474
# interceptors.
7575
self.runCmd("continue")
7676

77+
self.runCmd("expr let $targetptr = ptr")
78+
7779
# the stop reason of the thread should be breakpoint.
7880
self.expect("thread list", lldbtest.STOPPED_DUE_TO_BREAKPOINT,
7981
substrs=['stopped', 'stop reason = breakpoint'])
8082

8183
self.expect(
82-
"memory history `ptr`",
84+
"memory history $targetptr",
8385
substrs=[
8486
'Memory allocated by Thread 1',
8587
'main.swift'])
@@ -105,7 +107,7 @@ def do_test_asan(self):
105107
break
106108

107109
self.expect(
108-
"memory history `ptr`",
110+
"memory history $targetptr",
109111
substrs=[
110112
'Memory allocated by Thread 1',
111113
'main.swift'])

0 commit comments

Comments
 (0)