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.
This commit is contained in:
Patrick Palka 2015-07-29 12:44:21 -04:00
parent 60b57502ec
commit d618e4c51c
2 changed files with 7 additions and 17 deletions

View File

@ -1,3 +1,9 @@
2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
* gdb.base/batch-preserve-term-settings.exp
(test_terminal_settings_preserved_after_cli_exit): Use
send_quit_command.
2015-07-29 Pedro Alves <palves@redhat.com>
Don Breazeal <donb@codesourcery.com>

View File

@ -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 {