diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-01-31 19:14:15 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-02-01 00:49:15 +0100 |
commit | 5940d20c69e21476c10ff38ed0689ea2f0b68c94 (patch) | |
tree | e63e6d13b450bcce977216a4ae8af19c56b67ea2 /src/testlib | |
parent | 828e14b5f98a77f219bdcf119e463443121cf939 (diff) |
testlib: Fix indentation
Change-Id: I54bb2c3dda731e1fd6c7e909aa30a3cedb53612b
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/testlib')
-rw-r--r-- | src/testlib/qtestcase.cpp | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp index d28cfd8613..2f62d51c58 100644 --- a/src/testlib/qtestcase.cpp +++ b/src/testlib/qtestcase.cpp @@ -1957,25 +1957,26 @@ int QTest::qRun() } #ifndef QT_NO_EXCEPTIONS - } catch (...) { - QTestResult::addFailure("Caught unhandled exception", __FILE__, __LINE__); - if (QTestResult::currentTestFunction()) { - QTestResult::finishedCurrentTestFunction(); - QTestResult::setCurrentTestFunction(nullptr); - } + } catch (...) { + QTestResult::addFailure("Caught unhandled exception", __FILE__, __LINE__); + if (QTestResult::currentTestFunction()) { + QTestResult::finishedCurrentTestFunction(); + QTestResult::setCurrentTestFunction(nullptr); + } QTestLog::stopLogging(); + #if defined(Q_OS_MACX) - if (macNeedsActivate) { - IOPMAssertionRelease(powerID); - } + if (macNeedsActivate) { + IOPMAssertionRelease(powerID); + } #endif - currentTestObject = nullptr; + currentTestObject = nullptr; - // Rethrow exception to make debugging easier. - throw; - return 1; - } + // Re-throw exception to make debugging easier + throw; + return 1; + } #endif #if QT_CONFIG(valgrind) |