]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
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)
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

index cb69e331afe742294e14e50445835cdca5318984..23bbf1073647a030d717f8daaf64a5ce3f16a716 100644 (file)
@@ -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} {