summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/autotest/testcodeparser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/autotest/testcodeparser.cpp b/src/plugins/autotest/testcodeparser.cpp
index f2fc52778d..8b6ee0c678 100644
--- a/src/plugins/autotest/testcodeparser.cpp
+++ b/src/plugins/autotest/testcodeparser.cpp
@@ -439,9 +439,9 @@ void TestCodeParser::onFinished()
void TestCodeParser::onPartialParsingFinished()
{
- QTC_ASSERT(m_fullUpdatePostponed != m_partialUpdatePostponed
- || ((m_fullUpdatePostponed || m_partialUpdatePostponed) == false),
- m_partialUpdatePostponed = false;m_postponedFiles.clear(););
+ // fail only when both are true
+ QTC_ASSERT(!m_fullUpdatePostponed || !m_partialUpdatePostponed,
+ m_partialUpdatePostponed = false; m_postponedFiles.clear());
if (m_fullUpdatePostponed) {
m_fullUpdatePostponed = false;
qCDebug(LOG) << "calling updateTestTree (onPartialParsingFinished)";