Fix gdb.mi/new-ui-mi-sync.exp --- gdb/testsuite/gdb.mi/new-ui-mi-sync.exp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.mi/new-ui-mi-sync.exp b/gdb/testsuite/gdb.mi/new-ui-mi-sync.exp index 887bd60abcd..18072d4e668 100644 --- a/gdb/testsuite/gdb.mi/new-ui-mi-sync.exp +++ b/gdb/testsuite/gdb.mi/new-ui-mi-sync.exp @@ -83,7 +83,11 @@ proc do_test {sync_command} { # in the separate MI UI. Note the "run" variant usually triggers # =thread-group-started/=thread-created/=library-loaded as well. with_spawn_id $gdb_main_spawn_id { - gdb_test "add-inferior" "Added inferior 2 on connection .*" + gdb_test_multiple "add-inferior" "" { + -re "\r\nAdded inferior 2 on connection .*\[\r\n\]+$gdb_prompt " { + pass $gdb_test_name + } + } } # Interrupt the program.