summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilian Wolff <milian.wolff@kdab.com>2020-06-12 17:58:32 +0200
committerMilian Wolff <milian.wolff@kdab.com>2020-06-15 08:24:22 +0000
commit57989ee1b2d919698881dacb763338aedece030f (patch)
tree288dfa98d33945e9a9ab617bf934675f79d44470
parentca022c0aac0e66b172306c2d6e4b9adfa9be81cc (diff)
Unbreak test in debug build
Asking for an address that's not within the range specified by the ElfInfo leads to an assert. Don't do that, by giving both Elf maps the same addresses. The cache operates on relative addresses internally anyways, so the absolute addresses are irrelevant. Change-Id: I33afdc762ca74d1ec4243420e4bc886aa4820581 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
-rw-r--r--tests/auto/addresscache/tst_addresscache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/addresscache/tst_addresscache.cpp b/tests/auto/addresscache/tst_addresscache.cpp
index c451f05..39a7860 100644
--- a/tests/auto/addresscache/tst_addresscache.cpp
+++ b/tests/auto/addresscache/tst_addresscache.cpp
@@ -67,7 +67,7 @@ private slots:
PerfElfMap::ElfInfo info_a{{}, 0x100, 100, 0,
QByteArrayLiteral("libfoo_a.so"),
QByteArrayLiteral("/usr/lib/libfoo_a.so")};
- PerfElfMap::ElfInfo info_b{{}, 0x200, 100, 0,
+ PerfElfMap::ElfInfo info_b{{}, 0x100, 100, 0,
QByteArrayLiteral("libfoo_b.so"),
QByteArrayLiteral("/usr/lib/libfoo_b.so")};