gdb/testsuite: adjust another add-inferior test for native-extended-gdbserver board
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 7 Nov 2025 20:53:19 +0000 (20:53 +0000)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 7 Nov 2025 20:56:55 +0000 (15:56 -0500)
I see this FAIL when running with the native-extended-gdbserver board:

    Expecting: ^(-add-inferior[^M
    ]+)?(.*\^done,inferior="i2"[^M
    ]+[(]gdb[)] ^M
    [ ]*)
    -add-inferior^M
    =thread-group-added,id="i2"^M
    ~"[New inferior 2]\n"^M
    ~"Added inferior 2 on connection 1 (extended-remote localhost:2345)\n"^M
    ^done,inferior="i2",connection={number="1",name="extended-remote"}^M
    (gdb) ^M
    FAIL: gdb.mi/set-show.exp: test_per_inferior_parameters: add inferior (unexpected output)

This is another case of the add-inferior command producing more output
when connected to a remote target.  Adjust the regexp to accomodate it.

Change-Id: Ifa0590211fd75d4a01dff942c6bb810d5caf1257

gdb/testsuite/gdb.mi/set-show.exp

index 0c28a5f45209cb7a086d1eb06faa63930414aee0..7a1db154cd35f7297d3a30f936921e69ffce14e8 100644 (file)
@@ -26,7 +26,7 @@ proc_with_prefix test_per_inferior_parameters { } {
     mi_clean_restart
 
     # Add a second inferior right away.
-    mi_gdb_test "-add-inferior" ".*\\^done,inferior=\"i2\"" "add inferior"
+    mi_gdb_test "-add-inferior" ".*\\^done,inferior=\"i2\".*" "add inferior"
 
     # Set distinct values on each inferior.
     foreach_with_prefix inf {1 2} {
This page took 0.070437 seconds and 5 git commands to generate.