diff options
author | Tom de Vries <tdevries@suse.de> | 2023-10-26 10:34:24 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2023-10-26 10:34:24 +0200 |
commit | 743d3f0945c625ce5647130b506eeb6940dfc12e (patch) | |
tree | 442bf70ed438900271627534f347d6f5e47abbb5 /gdbserver | |
parent | 35ce3b813f879da98341b62e1797b6ea2341411c (diff) | |
download | gdb-743d3f0945c625ce5647130b506eeb6940dfc12e.zip gdb-743d3f0945c625ce5647130b506eeb6940dfc12e.tar.gz gdb-743d3f0945c625ce5647130b506eeb6940dfc12e.tar.bz2 |
[gdb/testsuite] Add wait-for-index-cache in gdb.dwarf2/per-bfd-sharing.exp
If we make writing an index-cache entry very slow by doing this in
index_cache::store:
...
try
{
+ sleep (15);
index_cache_debug ("writing index cache for objfile %s",
bfd_get_filename (per_bfd->obfd));
...
we run into:
...
FAIL: gdb.dwarf2/per-bfd-sharing.exp: \
couldn't remove files in temporary cache dir
...
The FAIL happens because there is no index-cache entry in the cache dir.
The problem is that gdb is killed (by gdb_exit) before the index-cache entry
is written.
Fix this by using "maint wait-for-index-cache".
Tested on x86_64-linux.
PR testsuite/30528
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30528
Diffstat (limited to 'gdbserver')
0 files changed, 0 insertions, 0 deletions