summaryrefslogtreecommitdiffstats
path: root/tests/auto/qpieslice/tst_qpieslice.cpp
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>2014-11-11 11:17:04 +0200
committerMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>2014-11-11 11:31:38 +0200
commitc6ed50e68438e5558e7cda0e36c194a4b99f7f83 (patch)
tree8cbb330dc82eae3cb11b2202ba0f34bc6e6988bf /tests/auto/qpieslice/tst_qpieslice.cpp
parenta686cb49be8689c5e306e895062f47c37a4f908d (diff)
Plugged some memory leaks.
Autotests were also made Valgrind friendly by adding a final one millisecond wait to the end of the test to allow pending deleteLaters to run. Also some minor cosmetic cleanup done to autotests. Change-Id: Ic3719167a22949f243eaf54614e174a681dbe34a Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
Diffstat (limited to 'tests/auto/qpieslice/tst_qpieslice.cpp')
-rw-r--r--tests/auto/qpieslice/tst_qpieslice.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qpieslice/tst_qpieslice.cpp b/tests/auto/qpieslice/tst_qpieslice.cpp
index 7f8887af..16099cfd 100644
--- a/tests/auto/qpieslice/tst_qpieslice.cpp
+++ b/tests/auto/qpieslice/tst_qpieslice.cpp
@@ -57,6 +57,7 @@ void tst_qpieslice::initTestCase()
void tst_qpieslice::cleanupTestCase()
{
+ QTest::qWait(1); // Allow final deleteLaters to run
}
void tst_qpieslice::init()