diff --git a/test/testsuppressions.cpp b/test/testsuppressions.cpp index 2570321db..08125c4b5 100644 --- a/test/testsuppressions.cpp +++ b/test/testsuppressions.cpp @@ -65,11 +65,6 @@ private: { errout.str(""); output.str(""); - if (!ThreadExecutor::isEnabled()) - { - // Skip this check on systems which don't use this feature - return; - } std::vector filenames; std::map filesizes; @@ -236,7 +231,8 @@ private: void suppressionsSettings() { runChecks(&TestSuppressions::checkSuppression); - runChecks(&TestSuppressions::checkSuppressionThreads); + if (ThreadExecutor::isEnabled()) + runChecks(&TestSuppressions::checkSuppressionThreads); } void suppressionsMultiFile()