diff --git a/gdb/testsuite/gdb.base/paginate-bg-execution.exp b/gdb/testsuite/gdb.base/paginate-bg-execution.exp index f7437ac..7b96df7 100644 --- a/gdb/testsuite/gdb.base/paginate-bg-execution.exp +++ b/gdb/testsuite/gdb.base/paginate-bg-execution.exp @@ -104,6 +104,11 @@ proc test_bg_execution_pagination_cancel { how } { -re "Quit\r\n$gdb_prompt $" { pass $test } + # This variant can show up e.g. in remote testing via ssh -T, + # so that GDB has no terminal. + -re "Quit (expect signal SIGINT when the program is resumed)\r\n$gdb_prompt $" { + pass $test + } } gdb_test "p 1" " = 1" "GDB accepts further input" @@ -114,5 +119,7 @@ proc test_bg_execution_pagination_cancel { how } { } test_bg_execution_pagination_return -test_bg_execution_pagination_cancel "ctrl-c" +if ![target_info exists gdb,nointerrupts] { + test_bg_execution_pagination_cancel "ctrl-c" +} test_bg_execution_pagination_cancel "quit"