summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2018-01-25 11:30:08 +0100
committerUlf Hermann <ulf.hermann@qt.io>2018-01-26 14:52:23 +0000
commita24a2af95e22cce759da46bf9a2e8a2687d3611d (patch)
treee9bc30793b9426297465e7e27ca2fd8e16dcdabd /tests
parentaf54011bd5d3d52d3cee9a3340da6939da9468c7 (diff)
Buffer non-pipe perf.data in a temporary file when streamed
This is mainly for testing. I don't want to special case things for this all the time. Change-Id: Ifc0621065fe0d5dd86fbebc70f89cfdc8a0ee43c Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/perfdata/tst_perfdata.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/perfdata/tst_perfdata.cpp b/tests/auto/perfdata/tst_perfdata.cpp
index 7ab1971..45bb5ea 100644
--- a/tests/auto/perfdata/tst_perfdata.cpp
+++ b/tests/auto/perfdata/tst_perfdata.cpp
@@ -66,7 +66,8 @@ static void process(PerfUnwind *unwind, QIODevice *input)
{
PerfHeader header(input);
PerfAttributes attributes;
- PerfData data(input, unwind, &header, &attributes);
+ PerfData data(unwind, &header, &attributes);
+ data.setSource(input);
QSignalSpy spy(&data, SIGNAL(finished()));
QObject::connect(&header, &PerfHeader::finished, &data, [&](){