summaryrefslogtreecommitdiff
path: root/tests/auto/xmlpatternsxqts/tst_xmlpatternsxqts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/xmlpatternsxqts/tst_xmlpatternsxqts.cpp')
-rw-r--r--tests/auto/xmlpatternsxqts/tst_xmlpatternsxqts.cpp26
1 files changed, 2 insertions, 24 deletions
diff --git a/tests/auto/xmlpatternsxqts/tst_xmlpatternsxqts.cpp b/tests/auto/xmlpatternsxqts/tst_xmlpatternsxqts.cpp
index 1704144..b758a5e 100644
--- a/tests/auto/xmlpatternsxqts/tst_xmlpatternsxqts.cpp
+++ b/tests/auto/xmlpatternsxqts/tst_xmlpatternsxqts.cpp
@@ -41,7 +41,6 @@
#include <QtTest/QtTest>
-
#include "tst_suitetest.h"
/*!
@@ -68,30 +67,9 @@ void tst_XmlPatternsXQTS::catalogPath(QString &write) const
if(dontRun())
QSKIP("This test takes too long time to run on the majority of platforms.");
- QProcess p4;
-
- QStringList arguments;
- arguments << QLatin1String("where")
- << QLatin1String("//depot/autotests/4.4/tests/auto/xmlpatternsxqts/XQTS/XQTSCatalog.xml");
- p4.start(QLatin1String("p4"), arguments);
- QVERIFY(p4.waitForFinished());
- QCOMPARE(p4.exitCode(), 0);
- QCOMPARE(p4.exitStatus(), QProcess::NormalExit);
-
- /* `p4 where' prints for instance:
- *
- * //depot/qt/4.4/tests/auto/xmlpatternsxqts/... //fenglich-englich/qt-4.4/tests/auto/xmlpatternsxqts/... /home/fenglich/dev/autotests/4.4/tests/auto/xmlpatternsxqts/XQTS/XQTSCatalog.xml
- *
- * so we want the last string.
- */
- write = QString::fromLocal8Bit(p4.readAllStandardOutput()).split(QLatin1Char(' ')).last().trimmed();
+ write = QLatin1String("TESTSUITE/XQTSCatalog.xml");
+ return;
- if(write.isEmpty() || !QFile::exists(write))
- {
- QEXPECT_FAIL("", "//depot/autotests/4.4/tests/auto/xmlpatternsxqts/XQTS/ must be part of the perforce client spec, "
- "checked out at an arbitrary location, for this test to run. The test suite will now be skipped.", Abort);
- QVERIFY(false);
- }
}
QTEST_MAIN(tst_XmlPatternsXQTS)