* [committed][gdb/testsuite] Fix gdb.base/index-cache.exp with cc-with-gdb-index
@ 2021-08-01 18:04 Tom de Vries
0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2021-08-01 18:04 UTC (permalink / raw)
To: gdb-patches
Hi,
With target board cc-with-gdb-index we run into:
...
FAIL: gdb.base/index-cache.exp: couldn't remove files in temporary cache dir
...
The problem is that there are no files to remove, because the index cache
isn't used, as indicated by $expecting_index_cache_use.
Fix this by only FAILing when $expecting_index_cache_use.
Tested on x86_64-linux.
Committed to trunk.
Thanks,
- Tom
[gdb/testsuite] Fix gdb.base/index-cache.exp with cc-with-gdb-index
gdb/testsuite/ChangeLog:
2021-08-01 Tom de Vries <tdevries@suse.de>
* gdb.base/index-cache.exp:
---
gdb/testsuite/gdb.base/index-cache.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/testsuite/gdb.base/index-cache.exp b/gdb/testsuite/gdb.base/index-cache.exp
index 0daf7bbb086..496145ed8fc 100644
--- a/gdb/testsuite/gdb.base/index-cache.exp
+++ b/gdb/testsuite/gdb.base/index-cache.exp
@@ -227,7 +227,7 @@ test_cache_enabled_hit $cache_dir
test_cache_disabled $cache_dir "after populate"
lassign [remote_exec host sh "-c \"rm $cache_dir/*.gdb-index\""] ret
-if { $ret != 0 } {
+if { $ret != 0 && $expecting_index_cache_use } {
fail "couldn't remove files in temporary cache dir"
return
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-01 18:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-01 18:04 [committed][gdb/testsuite] Fix gdb.base/index-cache.exp with cc-with-gdb-index Tom de Vries
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox