]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/testsuite: adjust add-inferior test for native-extended-gdbserver board
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 6 Nov 2025 21:13:07 +0000 (16:13 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 6 Nov 2025 21:17:01 +0000 (16:17 -0500)
commitf8af94d91e3762261d9e32988b483a0c4994b9a7
treeafddb3d61250ccc421dde614030d5d2b0ed94d87
parent70abf8984bdea3b67cf64bdceb94c2055bb8f4d7
gdb/testsuite: adjust add-inferior test for native-extended-gdbserver board

I see this failure:

    $ make check TESTS="gdb.base/with.exp" RUNTESTFLAGS="--target_board=native-extended-gdbserver"
    FAIL: gdb.base/with.exp: per-inferior parameters: add-inferior

The add-inferior command produces more output than expected when using
the native-extended-gdbserver board, because it is already connected to
a remote target:

    (gdb) add-inferior
    [New inferior 2]
    Added inferior 2 on connection 1 (extended-remote localhost:2348)

Fix that by accepting output after "Added inferior 2", as is done
elsewhere in the testsuite already (e.g. gdb.btrace/multi-inferior.exp).

Change-Id: I047a3be5249dd803839b213dd2f1646736fc8289
gdb/testsuite/gdb.base/with.exp