Add "info connections" command, "info inferiors" connection number/string
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.mi / new-ui-mi-sync.exp
index d026c56babd3cc36d16496f48cc3628c285ccdff..a55fae67dfe7d0e8899b6e860edbba7f5c0dc2f6 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2016-2018 Free Software Foundation, Inc.
+# Copyright 2016-2020 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # commands, MI should not process further commands until the inferior
 # stops again.  See PR gdb/20418.
 
+# Do not run if gdb debug is enabled as it doesn't work for separate-mi-tty.
+if [gdb_debug_enabled] {
+    untested "debug is enabled"
+    return 0
+}
+
 load_lib mi-support.exp
 
 standard_testfile
@@ -77,7 +83,7 @@ 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"
+       gdb_test "add-inferior" "Added inferior 2 on connection .*"
     }
 
     # Interrupt the program.
This page took 0.024313 seconds and 4 git commands to generate.