aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllanguage
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2014-02-20 11:38:41 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-02 11:45:55 +0100
commitcf5c3d686d5bbb942b565ee5df6babb10ce22bc6 (patch)
tree98c871f6114250dbe3fb5828dc6b26877c2327d4 /tests/auto/qml/qqmllanguage
parent3cb3c3a0c8b499fecf0761e4ce3680f2a8497f51 (diff)
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>
Diffstat (limited to 'tests/auto/qml/qqmllanguage')
-rw-r--r--tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
index 0a40e2cde2..34270bf1de 100644
--- a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
+++ b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
@@ -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) {\