[gdb/testsuite] Don't leak env vars in gdb.debuginfod/fetch_src_and_symbols.exp
authorTom de Vries <tdevries@suse.de>
Tue, 21 Jul 2020 07:40:21 +0000 (09:40 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 21 Jul 2020 07:40:21 +0000 (09:40 +0200)
commitbd460ecb313d064e079acacfc1eba77c58684f98
tree464bcd9fc501766f7e0822bf48830150442da6c4
parentec4fcab0ee2877e2dd33528b2be34fa90c00e0b7
[gdb/testsuite] Don't leak env vars in gdb.debuginfod/fetch_src_and_symbols.exp

Test-case gdb.debuginfod/fetch_src_and_symbols.exp leaks env vars
DEBUGINFOD_URLS, DEBUGINFOD_TIMEOUT and DEBUGINFOD_CACHE_PATH, causing
timeouts in subsequent tests.

Fix this by using save_vars.  Also, fix PATH and DUPLICATE errors.  Finally,
cleanup whitespace.

gdb/testsuite/ChangeLog:

2020-07-21  Tom de Vries  <tdevries@suse.de>

* gdb.debuginfod/fetch_src_and_symbols.exp: Use save_vars for env
vars.  Fix PATH and DUPLICATE errors.  Cleanup whitespace.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp