summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-11-16 15:36:36 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-11-22 11:38:02 +0000
commit97347cc6d4ef024c02864fef0c1e23d0b15c3956 (patch)
treedb8094f31b38cc4567d9467c2160f969137094cb /tests
parentff34ca5ea77605e783203fc3cfc3b69dd4a8cbaa (diff)
Stop test crashing on some windows CI
Giving replies their job as parent is unstable currently. Change-Id: Ifd4598b199c8409c15b13e362df383b11051fb7a Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/widgets/qwebengineprofile/tst_qwebengineprofile.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/auto/widgets/qwebengineprofile/tst_qwebengineprofile.cpp b/tests/auto/widgets/qwebengineprofile/tst_qwebengineprofile.cpp
index 400105152..294cc52b1 100644
--- a/tests/auto/widgets/qwebengineprofile/tst_qwebengineprofile.cpp
+++ b/tests/auto/widgets/qwebengineprofile/tst_qwebengineprofile.cpp
@@ -187,6 +187,12 @@ public:
setOpenMode(QIODevice::ReadOnly);
m_timer.start(100, this);
}
+ void close() override
+ {
+ QMutexLocker lock(&m_mutex);
+ QIODevice::close();
+ deleteLater();
+ }
bool isSequential() const override { return true; }
qint64 bytesAvailable() const override
{ return m_bytesAvailable; }
@@ -243,7 +249,7 @@ public:
void requestStarted(QWebEngineUrlRequestJob *job)
{
- job->reply("text/plain;charset=utf-8", new StreamingIODevice(job));
+ job->reply("text/plain;charset=utf-8", new StreamingIODevice(this));
}
};