Test that terminal settings are restored after quitting via SIGTERM
authorPatrick Palka <patrick@parcs.ath.cx>
Wed, 29 Jul 2015 15:59:25 +0000 (11:59 -0400)
committerPatrick Palka <patrick@parcs.ath.cx>
Wed, 29 Jul 2015 16:47:24 +0000 (12:47 -0400)
commit06265e53f4657a86f3ac3485552b97c942c9f4ac
tree812c47d0e20f05823521767336b45e81eb415e47
parente77e648e93adf564fb10e725e4d8800d30a83eb5
Test that terminal settings are restored after quitting via SIGTERM

Tested on x86_64 Debian Stretch, native, gdbserver and
extended-gdbserver.  Also tested that the various error paths, like if
$PPID is empty or if SIGTERM did not not kill GDB, function correctly.

gdb/testsuite/ChangeLog:

* gdb.base/batch-preserve-term-settings.exp (send_quit_command):
New proc.
(test_terminal_settings_preserved_after_sigterm): New test.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/batch-preserve-term-settings.exp