forked from qt-creator/qt-creator
AutoTest: Filter out interfering environment variables
If there are environment variables that might interfere with the test process filter them out before setting the environment for the test process as they can - in the worst case - even lead to being not able to execute the test application at all. Task-number: QTCREATORBUG-21012 Change-Id: I4a2059cf527395498824a0914fd6c3203eca9bcf Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include <QHash>
|
||||
|
||||
namespace Core { class Id; }
|
||||
namespace Utils { class Environment; }
|
||||
|
||||
namespace Autotest {
|
||||
namespace Internal {
|
||||
@@ -37,6 +38,7 @@ bool isQTestMacro(const QByteArray ¯o);
|
||||
QHash<QString, QString> testCaseNamesForFiles(const Core::Id &id, const QStringList &files);
|
||||
QMultiHash<QString, QString> alternativeFiles(const Core::Id &id, const QStringList &files);
|
||||
QStringList filterInterfering(const QStringList &provided, QStringList *omitted, bool isQuickTest);
|
||||
Utils::Environment prepareBasicEnvironment(const Utils::Environment &env);
|
||||
|
||||
} // namespace QTestUtils
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user