Skip to content
Commit a16034bf authored by Tom de Vries's avatar Tom de Vries
Browse files

[gdb/testsuite] Fix fail in gdb.dap/sources.exp



With test-case gdb.dap/sources.exp, I run into:
...
{"request_seq": 4, "type": "response", "command": "source", \
  "success": false, "message": "notStopped", \
  "seq": 11}FAIL: gdb.dap/sources.exp: get source success
...

The fail happens because the request races with the stopping at main as
requested by:
...
if {[dap_launch $testfile stop_at_main 1] == ""} {
...

Fix this by waiting for the stop, in the same way that is done in other
test-cases that use stop_at_main.

Tested on x86_64-linux.

Approved-By: default avatarTom Tromey <tom@tromey.com>

PR testsuite/31374
https://sourceware.org/bugzilla/show_bug.cgi?id=31374
parent 3224e32f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment