aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base
diff options
context:
space:
mode:
authorPatrick Palka <patrick@parcs.ath.cx>2015-07-29 12:44:21 -0400
committerPatrick Palka <patrick@parcs.ath.cx>2015-07-29 17:00:40 -0400
commitd618e4c51c73f2139a1aa8903d677a4202956f21 (patch)
tree3501607a39ce09c6becaee248dd3562d04a28698 /gdb/testsuite/gdb.base
parent60b57502ec8b600dac3fe53aa6615965f0430a6d (diff)
downloadgdb-d618e4c51c73f2139a1aa8903d677a4202956f21.zip
gdb-d618e4c51c73f2139a1aa8903d677a4202956f21.tar.gz
gdb-d618e4c51c73f2139a1aa8903d677a4202956f21.tar.bz2
batch-preserve-term-settings.exp: use send_quit_command some more
Just a slight cleanup. Committed as obvious. gdb/testsuite/ChangeLog: * gdb.base/batch-preserve-term-settings.exp (test_terminal_settings_preserved_after_cli_exit): Use send_quit_command.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r--gdb/testsuite/gdb.base/batch-preserve-term-settings.exp18
1 files changed, 1 insertions, 17 deletions
diff --git a/gdb/testsuite/gdb.base/batch-preserve-term-settings.exp b/gdb/testsuite/gdb.base/batch-preserve-term-settings.exp
index a4c8796..90f4057 100644
--- a/gdb/testsuite/gdb.base/batch-preserve-term-settings.exp
+++ b/gdb/testsuite/gdb.base/batch-preserve-term-settings.exp
@@ -251,23 +251,7 @@ proc test_terminal_settings_preserved_after_cli_exit { cmds } {
}
}
- set test "quit gdb"
- send_gdb "quit\n"
- gdb_expect {
- -re "(y or n)" {
- send_gdb "y\n"
- exp_continue
- }
- -re ".*$shell_prompt_re$" {
- pass $test
- }
- timeout {
- fail "$test (timeout)"
- }
- eof {
- fail "$test (eof)"
- }
- }
+ send_quit_command "quit gdb"
set test "terminal settings preserved"
if $stty_supported {