summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestcase.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-09-03 11:18:09 +0200
committerLars Knoll <lars.knoll@qt.io>2020-09-06 00:17:14 +0200
commita0e0b51001edfc1c7aea113c472ce995efa833fd (patch)
tree9a7f2b424806338301c0c262b5d268b94ec1ef61 /src/testlib/qtestcase.cpp
parent75d1d2a91376c3338510cf1e5fa10feaf8df5785 (diff)
Inline QTest::qSleep()
Simply use QThread::msleep() to implement it. Change-Id: I37c255fc70951715edc489d9f67669b01af380b1 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/testlib/qtestcase.cpp')
-rw-r--r--src/testlib/qtestcase.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp
index 6b9da24025..c2b33019b2 100644
--- a/src/testlib/qtestcase.cpp
+++ b/src/testlib/qtestcase.cpp
@@ -2491,12 +2491,6 @@ bool QTest::currentTestFailed()
\sa {QTest::qWait()}
*/
-void QTest::qSleep(int ms)
-{
- // ### Qt 6, move to QtCore or remove altogether
- QTEST_ASSERT(ms > 0);
- QTestPrivate::qSleep(ms);
-}
/*! \internal
*/