summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/elfmap/tst_elfmap.cpp8
-rw-r--r--tests/auto/perfdata/tst_perfdata.cpp2
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/elfmap/tst_elfmap.cpp b/tests/auto/elfmap/tst_elfmap.cpp
index 5b70758..9d27eee 100644
--- a/tests/auto/elfmap/tst_elfmap.cpp
+++ b/tests/auto/elfmap/tst_elfmap.cpp
@@ -100,7 +100,7 @@ private slots:
QCOMPARE(map.findElf(110), first);
PerfElfMap::ElfInfo second(file1, 105, 20, 0);
- QCOMPARE(registerElf(&map, second), QVector<PerfElfMap::ElfInfo>{first});
+ QCOMPARE(registerElf(&map, second), QList<PerfElfMap::ElfInfo>{first});
if (firstIsFile)
second.baseAddr = first.addr;
QCOMPARE(map.findElf(110), second);
@@ -109,7 +109,7 @@ private slots:
QCOMPARE(map.findElf(97), fragment1);
const PerfElfMap::ElfInfo third(file2, 100, 20, 0);
- QVector<PerfElfMap::ElfInfo> invalidatedByThird = {fragment1, second};
+ QList<PerfElfMap::ElfInfo> invalidatedByThird = {fragment1, second};
QCOMPARE(registerElf(&map, third), invalidatedByThird);
QCOMPARE(map.findElf(110), third);
QCOMPARE(map.findElf(110), third);
@@ -345,9 +345,9 @@ private slots:
}
private:
- QVector<PerfElfMap::ElfInfo> registerElf(PerfElfMap *map, const PerfElfMap::ElfInfo &info)
+ QList<PerfElfMap::ElfInfo> registerElf(PerfElfMap *map, const PerfElfMap::ElfInfo &info)
{
- QVector<PerfElfMap::ElfInfo> invalidated;
+ QList<PerfElfMap::ElfInfo> invalidated;
auto connection = connect(map, &PerfElfMap::aboutToInvalidate, this,
[&invalidated](const PerfElfMap::ElfInfo& other) { // clazy:exclude=lambda-in-connect
invalidated.push_back(other);
diff --git a/tests/auto/perfdata/tst_perfdata.cpp b/tests/auto/perfdata/tst_perfdata.cpp
index 5b6894c..9855172 100644
--- a/tests/auto/perfdata/tst_perfdata.cpp
+++ b/tests/auto/perfdata/tst_perfdata.cpp
@@ -173,7 +173,7 @@ void TestPerfData::testTracingData()
PerfParserTestClient client;
client.extractTrace(&output);
- const QVector<PerfParserTestClient::SampleEvent> samples = client.samples();
+ const QList<PerfParserTestClient::SampleEvent> samples = client.samples();
QVERIFY(samples.length() > 0);
for (const PerfParserTestClient::SampleEvent &sample : samples) {
QCOMPARE(sample.values.size(), 1);