aboutsummaryrefslogtreecommitdiff
path: root/move-if-change
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2019-06-16 09:07:16 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2019-06-16 09:07:17 -0400
commit399aaebd1a5e9e3971758396bd0c5c3ec5ae2386 (patch)
tree2a6295827c291bb26d44a655b9d17314291c16a8 /move-if-change
parent6ac6a19371b72f848626666af5301612b76e800e (diff)
downloadgdb-399aaebd1a5e9e3971758396bd0c5c3ec5ae2386.zip
gdb-399aaebd1a5e9e3971758396bd0c5c3ec5ae2386.tar.gz
gdb-399aaebd1a5e9e3971758396bd0c5c3ec5ae2386.tar.bz2
Make gdb.base/index-cache.exp work with readnow board (PR 24669)
The gdb.base/index-cache.exp test fails with the readnow board: $ make check TESTS="gdb.base/index-cache.exp" RUNTESTFLAGS="--target_board=readnow" FAIL: gdb.base/index-cache.exp: test_cache_enabled_miss: at least one file was created FAIL: gdb.base/index-cache.exp: test_cache_enabled_miss: expected file is there FAIL: gdb.base/index-cache.exp: test_cache_enabled_miss: check index-cache stats FAIL: gdb.base/index-cache.exp: test_cache_enabled_hit: check index-cache stats The problem is similar to what was fixed in 5a56d6a65f84 ("[gdb/testsuite] Fix index-cache.exp with cc-with-{gdb-index,debug-names}") In that commit, gdb.base/index-cache.exp was modified to account for the fact that the index cache is not used when the binary already has an embedded index. The same situation happens when GDB is started with the -readnow flag: it bypasses indices and partial symbols. So this patch updates the test to also expect the index cache not to be used if -readnow is present in $GDBFLAGS, gdb/testsuite/ChangeLog: PR gdb/24669 * gdb.base/index-cache.exp (uses_readnow, expecting_index_cache_use): Define global variable. (test_cache_enabled_miss, test_cache_enabled_hit): Use expecting_index_cache_use.
Diffstat (limited to 'move-if-change')
0 files changed, 0 insertions, 0 deletions