summaryrefslogtreecommitdiff
path: root/tests/auto/xmlpatterns/tst_xmlpatterns.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Autotest: adapt to qt_error_string() now returning Win32 messagesThiago Macieira2017-07-211-0/+10
| | | | | | | Instead of Unix "No such file or directory". Change-Id: I84e45059a888497fb55ffffd14d32409773e38fe Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Pass system environment to processes invoked from tst_xmlpatternsSami Nurmenniemi2017-04-271-1/+1
| | | | | | | | | | This fixes test run with QEMU, which needs QEMU environmental variables passed also to the process invoked from it. Task-number: QTBUG-60266 Change-Id: Icc77f36aa6107043e0845680c2fd4fbf33a7e4e2 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
* Eradicate Q_FOREACH loops and mark the module as Q_FOREACH-freeMarc Mutz2016-09-201-3/+2
| | | | | | | | In network-settings.h, replaced a few QList of static size with C arrays. Change-Id: Iac32e68f76e3c53fa03b6a2943e1dfb5adbe6fad Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* tst_XmlPatterns::filterStderr - extend the filterTimur Pocheptsov2016-06-011-0/+1
| | | | | | | | | | | Recent change in network/ssl (namely QSslDiffieHellmanParameters) resulted in 'Unimplemented code.' warning message from default (non-OpenSSL) version (Q_UNIMPLEMENTED there). This makes the test fail. Since Q_UNIMPLEMENTED is not suppressable by logging category trick, extend the already existing filter instead. Change-Id: I6963731dfa7bb74002f9e44e711a6dfb61578cd7 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* Merge remote-tracking branch 'origin/5.7' into devLiang Qi2016-05-241-0/+4
|\ | | | | | | Change-Id: Ie2fcdbd40c4ee41d74250fed025f0363931aefa9
| * tst_XmlPattern:xquerySupport - silence QSsl's debug outputTimur Pocheptsov2016-05-041-2/+0
| | | | | | | | | | | | | | | | | | | | | | None of tests expects our own debug output in the processe's output, thus if we have something (even a minor warning) - the test can fail. It was first found on OS X 10.11 with Secure Transport backend, now pops up with OpenSSL back-end also (Windows 7) Change-Id: I19108416048bf89feae2648106b4a4ba8604aa93 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io> Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
| * tst_XmlPatterns::xquerySupport - silence logging categoryTimur Pocheptsov2016-04-141-0/+6
| | | | | | | | | | | | | | | | | | | | On 10.11 SSL code started producing error messages recently (under investigation) making a test, that expects no error messages to fail. It's a quick and dirty fix. Change-Id: I2339aad551633b378727329d326e610e669b3b2f Reviewed-by: Akseli Salovaara <akseli.salovaara@theqtcompany.com> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
* | Remove Windows CE.Friedemann Kleint2016-04-151-12/+0
|/ | | | | | | | Remove #ifdef sections for Q_OS_WINCE and wince .pro file clauses. Task-number: QTBUG-51673 Change-Id: Id03f665883a501105e76c2842fb7c0fbf3086687 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Updated license headersAntti Kokko2016-01-211-17/+12
| | | | | | | | | | | From Qt 5.7 -> tools & applications are lisenced under GPL v3 with some exceptions, see http://blog.qt.io/blog/2016/01/13/new-agreement-with-the-kde-free-qt-foundation/ Updated license headers to use new GPL-EXCEPT header instead of LGPL21 one (in those files which will be under GPL 3 with exceptions) Change-Id: I1ddbce303f8c450d5bf1b553ab53843a83046bb5 Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com>
* Merge remote-tracking branch 'origin/5.6' into devLiang Qi2015-10-141-2/+21
|\ | | | | | | | | | | | | Conflicts: tests/auto/xmlpatterns/tst_xmlpatterns.cpp Change-Id: Ib93b62f45d796dd3ed2d5d03f602699295f62705
| * Merge remote-tracking branch 'origin/5.5' into 5.6Liang Qi2015-10-081-4/+11
| |\ | | | | | | | | | Change-Id: I9a379d34bf80344de9b6e9465e6f35fca7fd1a12
| | * Compile fix for platforms without QProcess supportv5.5.15.5.1Pasi Petäjäjärvi2015-09-111-4/+4
| | | | | | | | | | | | | | | Change-Id: Ied9eefcaff7c7a991cde483dc08c6905ba9ca421 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
| | * Iterate Over the Items (Not the Operands) of a Literal SequenceDavid E. Narvaez2015-07-291-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current code iterates over the (empty) list of operands of a Literal Sequence, ignoring any items in it, so Literal Sequences are always ignored in the ExpressionSequence. Task-number: QTBUG-35897 Change-Id: I60341ac21c8e3b77bf6d8dfeebdbafe010844406 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
| * | xmlpatterns test: Improve process handling.Friedemann Kleint2015-09-031-1/+13
| |/ | | | | | | | | | | | | | | Introduce a message when starting fails or timeouts occur and flip the order to check for timeouts first and then check the exit code. Change-Id: I293aa55888186f66c12cd86bcb8010802f521032 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* | tst_xmlpatterns: Modified flag QT_NO_PROCESS positionTuomas Heimonen2015-09-111-4/+4
|/ | | | | | Change-Id: Iec0b443027c59cf171eec94968f03dae3ffb136a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* Update copyright headersJani Heikkinen2015-02-171-7/+7
| | | | | | | | | Qt copyrights are now in The Qt Company, so we could update the source code headers accordingly. In the same go we should also fix the links to point to qt.io. Change-Id: I1dc468d4e08c2dfdc4643410220f18bc8ec450b9 Reviewed-by: Antti Kokko <antti.kokko@theqtcompany.com>
* Update license headers and add new license filesAntti Kokko2014-08-241-19/+11
| | | | | | | | | - Renamed LICENSE.LGPL to LICENSE.LGPLv21 - Added LICENSE.LGPLv3 & LICENSE.GPLv2 - Removed LICENSE.GPL Change-Id: If9208b9c90bcea35bbfe6b9c10db7803e97767e0 Reviewed-by: Jani Heikkinen <jani.heikkinen@digia.com>
* Compile fix for platforms without process supportMaurice Kalinowski2014-07-071-1/+13
| | | | | Change-Id: Ie150bec62827b592d4b3f2df98a51862d3cc76ae Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
* test: Don't fail *all* tests if the network test server is not set upold/5.2Sergio Ahumada2014-02-111-2/+4
| | | | | | | | | Since not all tests for tst_qxmlquery and tst_xmlpatterns depend on the network test server being set up, now we just fail those which really depend on it allowing the rest to be normally run. Change-Id: I0588cf986ffddea117cee680e07e1a8cc4d68436 Reviewed-by: Peter Hartmann <phartmann@blackberry.com>
* test: Remove QSKIP from tst_xmlpatternsSergio Ahumada2013-07-261-2/+0
| | | | | | | | Tests are passing nowaways on OS X. Task-number: QTBUG-22556 Change-Id: I1c2c864c6a9d9c9195012291745750b0193f4d00 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Update copyright year in Digia's license headersSergio Ahumada2013-01-101-1/+1
| | | | | | Change-Id: I5b7d4c1de139bebfff1b67d216c579835431e5d6 Reviewed-by: Akseli Salovaara <akseli.salovaara@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-241-24/+24
| | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: I34508f293d75832657f79479e2a8c184e873e154 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* make test suite properly shadow build compatibleOswald Buddenhagen2012-06-281-70/+75
| | | | | Change-Id: I42331f1894c6c09d098d84fc41f96c40f4725907 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Don't use the QRegExp methods that modify the objectThiago Macieira2012-04-241-1/+1
| | | | | | | | | | | | | | QRegExp matching methods modify the object, which we don't want to. In particular, when we receive a QRegExp from the user or we store in a context that might require thread-safety, make sure we make a copy before using it. QRegularExpression has no such shortcoming. Task-number: QTBUG-25064 Change-Id: I2c4d5f4b60d6b3569568103cd7107cd2adaa3ae8 Reviewed-by: Giuseppe D'Angelo <dangelog@gmail.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Fixed failure of tst_xmlpatterns due to Qt plugin loading changesRohan McGovern2012-02-221-6/+28
| | | | | | | | | | | | The test tries to verify that the xmlpatterns command outputs nothing on standard error. Qt makes this difficult by warning about some plugins (unrelated to xmlpatterns) using the old plugin API. Those plugins should be updated, but the warnings are irrelevant to xmlpatterns, so ignore them. Change-Id: I3c8cb0145a326a82eed3db547c5ae68315ec3cf1 Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
* Purge the Symbian support from this moduleHolger Hans Peter Freyther2012-01-311-9/+1
| | | | | | | | | | This continues were 70e6c71f7e8e4c12672075e7477f4f1d99f320e6 stopped and removes Symbian support from the .pro files and the examples. Change-Id: I760645d6e19cccb50d505340c3a08bacc7190105 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-311-1/+1
| | | | | | | | | | | As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: Ie14feff161cca83c53750e22a6204d34c3cba52c Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update obsolete contact address.Jason McDonald2012-01-231-1/+1
| | | | | | | | Replace Nokia contact email address with Qt Project website. Change-Id: I4a78fc4951be48d46135f4a5e0072bd1a8061ea9 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update copyright year in license headers.Jason McDonald2012-01-091-1/+1
| | | | | | Change-Id: Iba74aff1aba680f7b56314f3acae3478be9d3e56 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix sanity check of network test serverJason McDonald2011-11-301-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of Qt's autotests depend on access to a test server. For each test that used the test server, tests/auto/network-settings.h created a global object to verify at startup that host lookups to the test server will succeed (and abort the test otherwise). There are two problems with that approach: First, the sanity check happens before main(), and thus before the test framework has started logging test results. This means that if the sanity check aborts the test, the failure message will not be visible in the test output if logging to a file or will cause the output to be malformed if logging to the console in XML format. Second, since Qt 4.7, the host lookup uses a class that connects to the QCoreApplication instance, which doesn't exist before main(), and this caused all tests that included network-settings.h to output an error message from QObject::connect() at the beginning of the test. Both of these problems are solved by removing the global object from network-settings.h and instead performing the sanity check in the initTestCase() function of each test. Task-number: QTBUG-22876 Change-Id: I1ae004cf7a10a02d34d7ec517ef5515eb722aecf Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Temporary skip xmlquery test on MacHonglei Zhang2011-11-111-0/+2
| | | | | | | | | | | xquerySupport generates lots of "select: Invalid argument" on Mac environment. This should be checked. The test case should pass on Mac later when there is more resource on xmlpatterns. Bug report QTBUG-22556 is created to get it fixed. Change-Id: Iad37d21b84e7539e104a2b4595531b8ad9a58b07 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove SkipMode parameter from QSKIP.Jason McDonald2011-10-211-8/+7
| | | | | | | | | The SkipMode parameter has been removed from the API in qtbase, so it must be in all calls to QSKIP. Task-number: QTBUG-21851, QTBUG-21652 Change-Id: I8f5d6488637acd5e38d3c8dd418ff3776b2f3778 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* tests: explicitly put the path to xmlpatterns toolsRohan McGovern2011-10-141-4/+8
| | | | | | | | | | | Previously, these tests used whatever version of the xmlpatterns tools happened to be first in PATH, which was quite error-prone. QLibraryInfo can tell us exactly where the binaries are supposed to be located, so use that instead. Change-Id: I556ffe1819560afbe6a8bfa5272fcf2a760a14f7 Reviewed-on: http://codereview.qt-project.org/2799 Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
* Remove dead code from autotests.Jason McDonald2011-10-121-5/+0
| | | | | | | | | | | tests/auto/xmlpatterns.pri ensured that QTEST_XMLPATTERNS was always defined, so the preprocessor directives using this define were redundant. Change-Id: Id21d8b5cc4586ce0e92c1ee4a22c582eb3f76245 Reviewed-on: http://codereview.qt-project.org/6493 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove Symbian-specific code from tests.Jason McDonald2011-09-301-1/+0
| | | | | | | | | | Symbian is not a supported platform for Qt5, so this code is no longer required. Change-Id: I273c8bffdeec2bb026936d93c00ef3c79b7a1ad9 Reviewed-on: http://codereview.qt-project.org/5775 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update licenseheader text in source files for qtxmlpatterns Qt moduleJyri Tahtela2011-05-241-17/+17
| | | | | | | Updated version of LGPL and FDL licenseheaders. Apply release phase licenseheaders for all source files. Reviewed-by: Trust Me
* Remove Q_ASSERT's from xmlpatterns autotestJason McDonald2011-05-181-4/+4
| | | | | | | | | | Verify initial state in initTestCase() rather than asserting in the test class's constructor. Change-Id: Ic7612a5368e35b2abda96828d2a95690baeaf6a9 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit edd9d3f64f1532e39a80a2c7a97a2501391b2316)
* Initial import from the monolithic Qt.Qt by Nokia2011-04-271-0/+1023
This is the beginning of revision history for this module. If you want to look at revision history older than this, please refer to the Qt Git wiki for how to use Git history grafting. At the time of writing, this wiki is located here: http://qt.gitorious.org/qt/pages/GitIntroductionWithQt If you have already performed the grafting and you don't see any history beyond this commit, try running "git log" with the "--follow" argument. Branched from the monolithic repo, Qt master branch, at commit 896db169ea224deb96c59ce8af800d019de63f12