Fix debug output when tests fail
The tests with expected .errors.txt files support setting the DEBUG=1 environment variable to produce string output. Unfortunately "Actual:" and "Expected:" were swapped in the output. Change-Id: I2b378b0d9dcc6e513d82837abf9f8b0d5d7e1392 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
This commit is contained in:
parent
3cb3c3a0c8
commit
cf5c3d686d
|
@ -265,7 +265,7 @@ private:
|
|||
QVERIFY(!component.isError()); \
|
||||
QVERIFY(component.errors().isEmpty()); \
|
||||
} else { \
|
||||
DETERMINE_ERRORS(errorfile,actual,expected);\
|
||||
DETERMINE_ERRORS(errorfile,expected,actual);\
|
||||
if (qgetenv("DEBUG") != "" && expected != actual) \
|
||||
qWarning() << "Expected:" << expected << "Actual:" << actual; \
|
||||
if (qgetenv("QDECLARATIVELANGUAGE_UPDATEERRORS") != "" && expected != actual) {\
|
||||
|
|
Loading…
Reference in New Issue