From: Simon Marchi Date: Thu, 6 Nov 2025 21:13:07 +0000 (-0500) Subject: gdb/testsuite: adjust add-inferior test for native-extended-gdbserver board X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f8af94d91e3762261d9e32988b483a0c4994b9a7;p=thirdparty%2Fbinutils-gdb.git 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 --- diff --git a/gdb/testsuite/gdb.base/with.exp b/gdb/testsuite/gdb.base/with.exp index cb69e331afe..23bbf107364 100644 --- a/gdb/testsuite/gdb.base/with.exp +++ b/gdb/testsuite/gdb.base/with.exp @@ -233,7 +233,7 @@ with_test_prefix "per-inferior parameters" { clean_restart # Add a second inferior. - gdb_test "add-inferior" "Added inferior 2" + gdb_test "add-inferior" "Added inferior 2.*" # Set some parameters on each inferior. foreach_with_prefix inf {1 2} {