diff options
author | Tom de Vries <tdevries@suse.de> | 2021-05-27 15:22:38 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2021-05-27 15:22:38 +0200 |
commit | e453275cdcb28f3ca70ecb90d7aec51272a7a4f9 (patch) | |
tree | 224cec2ca6e758619cd23432b8c6b128fe1b7a64 /gdb/coff-pe-read.h | |
parent | 2152b4fdec3eb950f6ef54c6376dcb6fbdb52d02 (diff) | |
download | gdb-e453275cdcb28f3ca70ecb90d7aec51272a7a4f9.zip gdb-e453275cdcb28f3ca70ecb90d7aec51272a7a4f9.tar.gz gdb-e453275cdcb28f3ca70ecb90d7aec51272a7a4f9.tar.bz2 |
[gdb/testsuite] Prevent proc override in gdb-index.exp
When running these two test-cases in this specific order we get:
...
$ make check 'RUNTESTFLAGS=gdb.dwarf2/gdb-index.exp \
gdb.dwarf2/gdb-add-index-symlink.exp'
...
Running gdb.dwarf2/gdb-index.exp ...
Running gdb.dwarf2/gdb-add-index-symlink.exp ...
FAIL: gdb.dwarf2/gdb-add-index-symlink.exp: gdb-index file created
FAIL: gdb.dwarf2/gdb-add-index-symlink.exp: Unable to call \
gdb-add-index with a symlink to a symfile
...
The problem is that gdb-index.exp introduces a proc add_gdb_index which
overrides the one in lib/gdb.exp and stays active after the test is done.
Consequently it's used in gdb-add-index-symlink.exp, which should use the one
from lib/gdb.exp.
Fix this by renaming proc add_gdb_index in gdb-index.exp.
Tested on x86_64-linux.
gdb/testsuite/ChangeLog:
2021-05-27 Tom de Vries <tdevries@suse.de>
PR testsuite/27921
* gdb.dwarf2/gdb-index.exp (add_gdb_index): Rename to ...
(local_add_gdb_index): ... this.
Diffstat (limited to 'gdb/coff-pe-read.h')
0 files changed, 0 insertions, 0 deletions