[binutils-gdb] gdb/testsuite: adjust yet another add-inferior test for native-extended-gdbserver board

Simon Marchi simark@sourceware.org
Fri Nov 7 21:00:38 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=767c92a13e92d3c34b8ed6f3b6f1bf17eca57cbd

commit 767c92a13e92d3c34b8ed6f3b6f1bf17eca57cbd
Author: Simon Marchi <simon.marchi@efficios.com>
Date:   Fri Nov 7 15:59:03 2025 -0500

    gdb/testsuite: adjust yet another add-inferior test for native-extended-gdbserver board
    
    I'm seeing this FAIL with the native-extended-gdbserver board:
    
        (gdb) add-inferior^M
        [New inferior 2]^M
        Added inferior 2 on connection 1 (extended-remote localhost:2365)^M
        (gdb) FAIL: gdb.python/py-parameter.exp: test_per_inferior_parameters: add-inferior
    
    This is another case of add-inferior producing more output when
    connected to a remote target.  Adjust the regexp to accomodate it.
    
    Change-Id: Ic5760ff66712c54b90b9debf379dcbf6e07f6eeb

Diff:
---
 gdb/testsuite/gdb.python/py-parameter.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/testsuite/gdb.python/py-parameter.exp b/gdb/testsuite/gdb.python/py-parameter.exp
index a80fa19e584..7c2f5c680fa 100644
--- a/gdb/testsuite/gdb.python/py-parameter.exp
+++ b/gdb/testsuite/gdb.python/py-parameter.exp
@@ -724,7 +724,7 @@ proc_with_prefix test_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} {


More information about the Gdb-cvs mailing list