summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestcase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/testlib/qtestcase.cpp')
-rw-r--r--src/testlib/qtestcase.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp
index 76a1b36a61..02eb8a1661 100644
--- a/src/testlib/qtestcase.cpp
+++ b/src/testlib/qtestcase.cpp
@@ -1957,13 +1957,7 @@ int QTest::qRun()
QTestResult::setCurrentTestFunction(nullptr);
}
- QTestLog::stopLogging();
-
-#if defined(Q_OS_MACOS)
- IOPMAssertionRelease(macPowerSavingDisabled);
-#endif
-
- currentTestObject = nullptr;
+ qCleanup();
// Re-throw exception to make debugging easier
throw;