Skip to content

Commit 66a2ed5

Browse files
authored
[lldb] Remove process restart prompt from TestSourceManager (#85861)
In TestSourceManager, test_artificial_source_location will give the process restart prompt if you run the test individually. The reason is that we run the process twice: first using a convenience function to run to a specific breakpoint and then again to check for a specific message emitted when you hit the breakpoint. Instead of running twice and making the test difficult to run individually, we can just check for the specific messages using other commands.
1 parent 49c3e78 commit 66a2ed5

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lldb/test/API/source-manager/TestSourceManager.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -323,13 +323,12 @@ def test_artificial_source_location(self):
323323
)
324324

325325
self.expect(
326-
"run",
327-
RUN_SUCCEEDED,
326+
"process status",
328327
substrs=[
329328
"stop reason = breakpoint",
330-
"%s:%d" % (src_file, 0),
331-
"Note: this address is compiler-generated code in " "function",
332-
"that has no source code associated " "with it.",
329+
f"{src_file}:0",
330+
"Note: this address is compiler-generated code in function",
331+
"that has no source code associated with it.",
333332
],
334333
)
335334

0 commit comments

Comments
 (0)