Clean up batch-preserve-term-settings.exp
authorPatrick Palka <patrick@parcs.ath.cx>
Tue, 28 Jul 2015 02:10:13 +0000 (22:10 -0400)
committerPatrick Palka <patrick@parcs.ath.cx>
Wed, 29 Jul 2015 11:54:08 +0000 (07:54 -0400)
commit90074d118de70c5eb2c71ba83e58d96359149d79
tree955b9adddcc8987ff7195b5a895205d6961fcf4c
parentcc9f16aa882eb22cb2128c5eb8237fd453ab2988
Clean up batch-preserve-term-settings.exp

See ChangeLog for details.  No functional change intended.

Tested on x86_64 Debian Stretch by verifying that the gdb.log output
remains unchanged for native, gdbserver and extended-gdbserver.

gdb/testsuite/ChangeLog:

* gdb.base/batch-preserve-term-settings.exp: Remove top-level
manipulation of saved_gdbflags.
(test_terminal_settings_preserved): Remove global declaration of
the unused variable pagination_prompt.  Remove manipulation of
saved_gdbflags.  Use a local variable EXTRA_GDBFLAGS instead of
GDBFLAGS.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/batch-preserve-term-settings.exp