summaryrefslogtreecommitdiffstats
path: root/tests/auto/qxmlquery
diff options
context:
space:
mode:
authorHonglei Zhang <honglei.zhang@nokia.com>2011-04-20 06:44:29 (GMT)
committerHonglei Zhang <honglei.zhang@nokia.com>2011-04-20 07:33:40 (GMT)
commit0061f7e015b10ccaa45dc35b68cac467ebad424a (patch)
tree85480cc383095d004b5a37ead374b720542b05ef /tests/auto/qxmlquery
parent712ce5131bd1cf2f7c62065934a922577bfc4200 (diff)
downloadQt-0061f7e015b10ccaa45dc35b68cac467ebad424a.zip
Qt-0061f7e015b10ccaa45dc35b68cac467ebad424a.tar.gz
Qt-0061f7e015b10ccaa45dc35b68cac467ebad424a.tar.bz2
Fix autotest failure in XmlPattern qxmlquery
The bug fix for the memory leak in qxmlquery tried to fix a memory leak in autotest test driver. The fix broke the autotest logic and causes failure. This one fix the commit 986ab48f112... Task-number: QTBUG-15191 Reviewed-by: Sami Merila
Diffstat (limited to 'tests/auto/qxmlquery')
-rw-r--r--tests/auto/qxmlquery/tst_qxmlquery.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qxmlquery/tst_qxmlquery.cpp b/tests/auto/qxmlquery/tst_qxmlquery.cpp
index 2e0d1aa..5828367 100644
--- a/tests/auto/qxmlquery/tst_qxmlquery.cpp
+++ b/tests/auto/qxmlquery/tst_qxmlquery.cpp
@@ -3301,8 +3301,8 @@ void tst_QXmlQuery::bindVariableQXmlQueryInvalidate() const
QXmlQuery query2;
query2.setQuery("'query2'");
- query2.bindVariable(QLatin1String("name"), query);
- QVERIFY(!query2.isValid());
+ query.bindVariable(QLatin1String("name"), query2);
+ QVERIFY(!query.isValid());
}
void tst_QXmlQuery::unknownSourceLocation() const