From 57989ee1b2d919698881dacb763338aedece030f Mon Sep 17 00:00:00 2001 From: Milian Wolff Date: Fri, 12 Jun 2020 17:58:32 +0200 Subject: 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 --- tests/auto/addresscache/tst_addresscache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")}; -- cgit v1.2.3