testlib: Fix indentation

Change-Id: I54bb2c3dda731e1fd6c7e909aa30a3cedb53612b
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Tor Arne Vestbø 2020-01-31 19:14:15 +01:00
parent 828e14b5f9
commit 5940d20c69

View File

@ -1957,25 +1957,26 @@ int QTest::qRun()
} }
#ifndef QT_NO_EXCEPTIONS #ifndef QT_NO_EXCEPTIONS
} catch (...) { } catch (...) {
QTestResult::addFailure("Caught unhandled exception", __FILE__, __LINE__); QTestResult::addFailure("Caught unhandled exception", __FILE__, __LINE__);
if (QTestResult::currentTestFunction()) { if (QTestResult::currentTestFunction()) {
QTestResult::finishedCurrentTestFunction(); QTestResult::finishedCurrentTestFunction();
QTestResult::setCurrentTestFunction(nullptr); QTestResult::setCurrentTestFunction(nullptr);
} }
QTestLog::stopLogging(); QTestLog::stopLogging();
#if defined(Q_OS_MACX)
if (macNeedsActivate) {
IOPMAssertionRelease(powerID);
}
#endif
currentTestObject = nullptr;
// Rethrow exception to make debugging easier. #if defined(Q_OS_MACX)
throw; if (macNeedsActivate) {
return 1; IOPMAssertionRelease(powerID);
} }
#endif
currentTestObject = nullptr;
// Re-throw exception to make debugging easier
throw;
return 1;
}
#endif #endif
#if QT_CONFIG(valgrind) #if QT_CONFIG(valgrind)