/****************************************************************************
**
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
** Contact: http://www.qt-project.org/
**
** This file is part of the test suite of the Qt Toolkit.
**
**
**
+**
** $QT_END_LICENSE$
**
****************************************************************************/
#include <QtTest/QtTest>
-
#include "tst_suitetest.h"
/*!
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)