forked from qt-creator/qt-creator
DumperTests: Ensure a set up environment
For whatever reasons the qmake call already needs an environment containing cl on Windows if QC and the auto tests have been built with cmake. Change-Id: I7b55fb792d3bc282cc1561e8e3b55885a25bcf0e Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -1628,6 +1628,7 @@ void tst_Dumpers::dumper()
|
||||
"."
|
||||
};
|
||||
//qDebug() << "Starting cmake: " << m_cmakeBinary << ' ' << qPrintable(options.join(' '));
|
||||
cmake.setProcessEnvironment(m_env);
|
||||
cmake.start(m_cmakeBinary, options);
|
||||
QVERIFY(cmake.waitForFinished());
|
||||
output = cmake.readAllStandardOutput();
|
||||
@@ -1648,6 +1649,7 @@ void tst_Dumpers::dumper()
|
||||
if (m_qtVersion && m_qtVersion < 0x050000)
|
||||
options << "-spec" << "unsupported/macx-clang";
|
||||
#endif
|
||||
qmake.setProcessEnvironment(m_env);
|
||||
qmake.start(m_qmakeBinary, options);
|
||||
QVERIFY(qmake.waitForFinished());
|
||||
output = qmake.readAllStandardOutput();
|
||||
|
Reference in New Issue
Block a user