aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/new-ui.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/new-ui.exp')
-rw-r--r--gdb/testsuite/gdb.base/new-ui.exp12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/new-ui.exp b/gdb/testsuite/gdb.base/new-ui.exp
index 8224b7d..b84f4de 100644
--- a/gdb/testsuite/gdb.base/new-ui.exp
+++ b/gdb/testsuite/gdb.base/new-ui.exp
@@ -128,6 +128,18 @@ proc_with_prefix do_test {} {
gdb_test "print 2" "^print 2\r\n\\\$2 = 2" "print on extra console"
}
+ # Verify that we get proper queries on the main UI, but that they are
+ # auto-answered on secondary UIs.
+ with_spawn_id $gdb_main_spawn_id {
+ gdb_test "delete" "" "delete all breakpoint on main console" \
+ "Delete all breakpoints. .y or n. $" "n"
+ }
+ with_spawn_id $extra_spawn_id {
+ gdb_test "delete" \
+ "Delete all breakpoints. .y or n. .answered Y; input not from terminal." \
+ "delete all breakpoints on extra console"
+ }
+
# Run a few execution tests with the main console as the driver
# console.
with_test_prefix "main console" {