Skip to content

Commit 951b49b

Browse files
committed
[lldb-dap] Fix TestDap_attach.py flakiness
Looks like these 2 test cases should be re-enabled in 0b8dfb5 But only the comments got removed. The skip statement survived the change.
1 parent 683c3b8 commit 951b49b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,13 @@ def request_attach(
612612
if gdbRemoteHostname is not None:
613613
args_dict["gdb-remote-hostname"] = gdbRemoteHostname
614614
command_dict = {"command": "attach", "type": "request", "arguments": args_dict}
615-
return self.send_recv(command_dict)
615+
response = self.send_recv(command_dict)
616+
617+
if response["success"]:
618+
# Wait for a 'process' and 'initialized' event in any order
619+
self.wait_for_event(filter=["process", "initialized"])
620+
self.wait_for_event(filter=["process", "initialized"])
621+
return response
616622

617623
def request_breakpointLocations(
618624
self, file_path, line, end_line=None, column=None, end_column=None

0 commit comments

Comments
 (0)