forked from qt-creator/qt-creator
Tests: Make environment test less verbose
Only print out additional information if the environment does not match the expected one. Change-Id: I9be1a90400a180a4cbd0381f54eea79409c007c7 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -377,9 +377,12 @@ void tst_Environment::pathChanges()
|
|||||||
else
|
else
|
||||||
environment.appendOrSet(variable, value);
|
environment.appendOrSet(variable, value);
|
||||||
|
|
||||||
|
const bool envEqualsExpected = environment == expected;
|
||||||
|
if (!envEqualsExpected) {
|
||||||
qDebug() << "Actual :" << environment.toStringList();
|
qDebug() << "Actual :" << environment.toStringList();
|
||||||
qDebug() << "Expected:" << expected.toStringList();
|
qDebug() << "Expected:" << expected.toStringList();
|
||||||
QCOMPARE(environment, expected);
|
}
|
||||||
|
QVERIFY(envEqualsExpected);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tst_Environment::find_data()
|
void tst_Environment::find_data()
|
||||||
|
Reference in New Issue
Block a user