diff options
Diffstat (limited to 'tests/auto/perfdata/tst_perfdata.cpp')
-rw-r--r-- | tests/auto/perfdata/tst_perfdata.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/perfdata/tst_perfdata.cpp b/tests/auto/perfdata/tst_perfdata.cpp index e9fc85f..bf4b72c 100644 --- a/tests/auto/perfdata/tst_perfdata.cpp +++ b/tests/auto/perfdata/tst_perfdata.cpp @@ -164,8 +164,9 @@ void TestPerfData::testTracingData() const PerfParserTestClient::AttributeEvent attribute = client.attribute(sample.attributeId); QCOMPARE(attribute.type, 2u); + QVERIFY(attribute.config <= std::numeric_limits<qint32>::max()); const PerfParserTestClient::TracePointFormatEvent format - = client.tracePointFormat(attribute.config); + = client.tracePointFormat(static_cast<qint32>(attribute.config)); QCOMPARE(client.string(format.system), QByteArray("probe_untitled1")); QCOMPARE(client.string(format.name), QByteArray("main")); QCOMPARE(format.flags, 0u); |