From: Simon Marchi Date: Fri, 7 Nov 2025 20:53:19 +0000 (+0000) Subject: gdb/testsuite: adjust another add-inferior test for native-extended-gdbserver board X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4554e4aceb4594e6379df1fde5c6e24230b6b8c9;p=thirdparty%2Fbinutils-gdb.git gdb/testsuite: adjust another add-inferior test for native-extended-gdbserver board 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 --- diff --git a/gdb/testsuite/gdb.mi/set-show.exp b/gdb/testsuite/gdb.mi/set-show.exp index 0c28a5f4520..7a1db154cd3 100644 --- a/gdb/testsuite/gdb.mi/set-show.exp +++ b/gdb/testsuite/gdb.mi/set-show.exp @@ -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} {