summaryrefslogtreecommitdiff
path: root/tests/auto/xmlpatternsxqts
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@theqtcompany.com>2015-12-10 09:58:18 +0100
committerLiang Qi <liang.qi@theqtcompany.com>2015-12-10 09:58:18 +0100
commitc5ea60cb84fc7af57a85389a20d91e8397cce1a8 (patch)
tree6f9394b540efb6b0319b6b649d728de84e6d4af0 /tests/auto/xmlpatternsxqts
parent944129e3022a28a5cb969c6adaf01378b4555375 (diff)
parent8ba610490e2d93526c165584e2f52c7ae8e9edc0 (diff)
downloadqtxmlpatterns-c5ea60cb84fc7af57a85389a20d91e8397cce1a8.tar.gz
Merge remote-tracking branch 'origin/5.6' into dev
Change-Id: Iaf57c1b0beffdceb3f0533aa77ba536ec4c373a9
Diffstat (limited to 'tests/auto/xmlpatternsxqts')
-rw-r--r--tests/auto/xmlpatternsxqts/tst_suitetest.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/xmlpatternsxqts/tst_suitetest.cpp b/tests/auto/xmlpatternsxqts/tst_suitetest.cpp
index 4fdb7b5..4785067 100644
--- a/tests/auto/xmlpatternsxqts/tst_suitetest.cpp
+++ b/tests/auto/xmlpatternsxqts/tst_suitetest.cpp
@@ -35,6 +35,8 @@
#include <QtTest/QtTest>
#include <QProcess>
+#include <cstdlib>
+
#include "TestSuite.h"
#include "TestSuiteResult.h"
#include "XMLWriter.h"
@@ -70,6 +72,13 @@ void tst_SuiteTest::runTestSuite() const
if(m_abortRun)
QSKIP("The test suite is not available, no tests are run.");
+ QByteArray range = qgetenv("XMLPATTERNSXQTS_TESTRANGE");
+ char *endptr;
+ TreeItem::executeRange.first = strtol(range.constData(), &endptr, 10);
+ long e = 0;
+ if (endptr - range.constData() < range.size())
+ e = strtol(endptr + 1, &endptr, 10);
+ TreeItem::executeRange.second = (e == 0 ? INT_MAX : e);
QString errMsg;
const QFileInfo fi(m_catalogPath);
const QUrl catalogPath(QUrl::fromLocalFile(fi.absoluteFilePath()));