forked from qt-creator/qt-creator
AutoTest: Use using namespace Utils more often
Change-Id: I9d20cd3496c4719d58a977f8fd53253c86d55463 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -12,11 +12,13 @@
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/stringutils.h>
|
||||
|
||||
using namespace Utils;
|
||||
|
||||
namespace Autotest {
|
||||
namespace Internal {
|
||||
|
||||
TestOutputReader *GTestConfiguration::createOutputReader(const QFutureInterface<TestResult> &fi,
|
||||
Utils::QtcProcess *app) const
|
||||
QtcProcess *app) const
|
||||
{
|
||||
return new GTestOutputReader(fi, app, buildDirectory(), projectFile());
|
||||
}
|
||||
@@ -88,13 +90,13 @@ QStringList GTestConfiguration::argumentsForTestRunner(QStringList *omitted) con
|
||||
return arguments;
|
||||
}
|
||||
|
||||
Utils::Environment GTestConfiguration::filteredEnvironment(const Utils::Environment &original) const
|
||||
Environment GTestConfiguration::filteredEnvironment(const Environment &original) const
|
||||
{
|
||||
const QStringList interfering{"GTEST_FILTER", "GTEST_ALSO_RUN_DISABLED_TESTS",
|
||||
"GTEST_REPEAT", "GTEST_SHUFFLE", "GTEST_RANDOM_SEED",
|
||||
"GTEST_OUTPUT", "GTEST_BREAK_ON_FAILURE", "GTEST_PRINT_TIME",
|
||||
"GTEST_CATCH_EXCEPTIONS"};
|
||||
Utils::Environment result = original;
|
||||
Environment result = original;
|
||||
if (!result.hasKey("GTEST_COLOR"))
|
||||
result.set("GTEST_COLOR", "1"); // use colored output by default
|
||||
for (const QString &key : interfering)
|
||||
|
||||
Reference in New Issue
Block a user