Remove skipglobal testlib selftest.
This test duplicates the skipinitdata selftest and has slightly less informative output. Change-Id: Ifd40e3ef8030059ec8fa0089ce5b2a994624abeb Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>bb10
parent
8f02339e76
commit
af5f17e214
|
|
@ -1,9 +0,0 @@
|
|||
<Environment>
|
||||
<QtVersion>@INSERT_QT_VERSION_HERE@</QtVersion>
|
||||
<QTestVersion>@INSERT_QT_VERSION_HERE@</QTestVersion>
|
||||
</Environment>
|
||||
<TestFunction name="initTestCase">
|
||||
<Message type="skip" file="/local/user_builds/qt/4.6/tests/auto/selftests/skipglobal/tst_skipglobal.cpp" line="72">
|
||||
<Description><![CDATA[Skippy Skippy]]></Description>
|
||||
</Message>
|
||||
</TestFunction>
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
********* Start testing of tst_SkipGlobal *********
|
||||
Config: Using QTest library @INSERT_QT_VERSION_HERE@, Qt @INSERT_QT_VERSION_HERE@
|
||||
SKIP : tst_SkipGlobal::initTestCase() Skippy Skippy
|
||||
Loc: [/home/fenglich/dev/qt-4.3/tests/auto/selftests/skipglobal/tst_skipglobal.cpp(39)]
|
||||
Totals: 0 passed, 0 failed, 1 skipped
|
||||
********* Finished testing of tst_SkipGlobal *********
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<TestCase name="tst_SkipGlobal">
|
||||
<Environment>
|
||||
<QtVersion>@INSERT_QT_VERSION_HERE@</QtVersion>
|
||||
<QTestVersion>@INSERT_QT_VERSION_HERE@</QTestVersion>
|
||||
</Environment>
|
||||
<TestFunction name="initTestCase">
|
||||
<Message type="skip" file="/local/user_builds/qt/4.6/tests/auto/selftests/skipglobal/tst_skipglobal.cpp" line="72">
|
||||
<Description><![CDATA[Skippy Skippy]]></Description>
|
||||
</Message>
|
||||
</TestFunction>
|
||||
</TestCase>
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<testsuite errors="1" failures="0" tests="1" name="tst_SkipGlobal">
|
||||
<properties>
|
||||
<property value="@INSERT_QT_VERSION_HERE@" name="QTestVersion"/>
|
||||
<property value="@INSERT_QT_VERSION_HERE@" name="QtVersion"/>
|
||||
</properties>
|
||||
<testcase name="initTestCase">
|
||||
<!-- message="Skippy Skippy" type="skip" -->
|
||||
</testcase>
|
||||
<system-err>
|
||||
<![CDATA[Skippy Skippy]]>
|
||||
</system-err>
|
||||
</testsuite>
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
TEMPLATE = subdirs
|
||||
|
||||
SUBDIRS = subtest test warnings maxwarnings cmptest globaldata skipglobal skip \
|
||||
SUBDIRS = subtest test warnings maxwarnings cmptest globaldata skip \
|
||||
strcmp expectfail sleep fetchbogus crashes multiexec failinit failinitdata \
|
||||
skipinit skipinitdata datetime singleskip assert differentexec \
|
||||
exceptionthrow qexecstringlist datatable commandlinedata\
|
||||
|
|
|
|||
|
|
@ -102,10 +102,6 @@
|
|||
<file>expected_skip.txt</file>
|
||||
<file>expected_skip.xml</file>
|
||||
<file>expected_skip.xunitxml</file>
|
||||
<file>expected_skipglobal.lightxml</file>
|
||||
<file>expected_skipglobal.txt</file>
|
||||
<file>expected_skipglobal.xml</file>
|
||||
<file>expected_skipglobal.xunitxml</file>
|
||||
<file>expected_skipinit.lightxml</file>
|
||||
<file>expected_skipinit.txt</file>
|
||||
<file>expected_skipinit.xml</file>
|
||||
|
|
|
|||
|
|
@ -1,13 +0,0 @@
|
|||
load(qttest_p4)
|
||||
|
||||
# this is not a real testcase ('make check' should not run it)
|
||||
CONFIG -= testcase
|
||||
|
||||
SOURCES += tst_skipglobal.cpp
|
||||
QT = core
|
||||
|
||||
mac:CONFIG -= app_bundle
|
||||
CONFIG -= debug_and_release_target
|
||||
|
||||
|
||||
TARGET = skipglobal
|
||||
|
|
@ -1,113 +0,0 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
|
||||
** All rights reserved.
|
||||
** Contact: Nokia Corporation (qt-info@nokia.com)
|
||||
**
|
||||
** This file is part of the test suite of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** GNU Lesser General Public License Usage
|
||||
** This file may be used under the terms of the GNU Lesser General Public
|
||||
** License version 2.1 as published by the Free Software Foundation and
|
||||
** appearing in the file LICENSE.LGPL included in the packaging of this
|
||||
** file. Please review the following information to ensure the GNU Lesser
|
||||
** General Public License version 2.1 requirements will be met:
|
||||
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
**
|
||||
** In addition, as a special exception, Nokia gives you certain additional
|
||||
** rights. These rights are described in the Nokia Qt LGPL Exception
|
||||
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU General
|
||||
** Public License version 3.0 as published by the Free Software Foundation
|
||||
** and appearing in the file LICENSE.GPL included in the packaging of this
|
||||
** file. Please review the following information to ensure the GNU General
|
||||
** Public License version 3.0 requirements will be met:
|
||||
** http://www.gnu.org/copyleft/gpl.html.
|
||||
**
|
||||
** Other Usage
|
||||
** Alternatively, this file may be used in accordance with the terms and
|
||||
** conditions contained in a signed written agreement between you and Nokia.
|
||||
**
|
||||
**
|
||||
**
|
||||
**
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtTest/QtTest>
|
||||
|
||||
class tst_SkipGlobal: public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public slots:
|
||||
void init();
|
||||
void initTestCase();
|
||||
void initTestCase_data();
|
||||
|
||||
void cleanup();
|
||||
void cleanupTestCase();
|
||||
|
||||
private slots:
|
||||
void testGlobal_data();
|
||||
void testGlobal();
|
||||
};
|
||||
|
||||
|
||||
void tst_SkipGlobal::initTestCase()
|
||||
{
|
||||
printf("initTestCase %s %s\n",
|
||||
QTest::currentTestFunction() ? QTest::currentTestFunction() : "(null)",
|
||||
QTest::currentDataTag() ? QTest::currentDataTag() : "(null)");
|
||||
}
|
||||
|
||||
void tst_SkipGlobal::initTestCase_data()
|
||||
{
|
||||
QSKIP("Skippy Skippy", SkipAll);
|
||||
}
|
||||
|
||||
void tst_SkipGlobal::cleanupTestCase()
|
||||
{
|
||||
printf("cleanupTestCase %s %s\n",
|
||||
QTest::currentTestFunction() ? QTest::currentTestFunction() : "(null)",
|
||||
QTest::currentDataTag() ? QTest::currentDataTag() : "(null)");
|
||||
}
|
||||
|
||||
void tst_SkipGlobal::init()
|
||||
{
|
||||
printf("init %s %s\n",
|
||||
QTest::currentTestFunction() ? QTest::currentTestFunction() : "(null)",
|
||||
QTest::currentDataTag() ? QTest::currentDataTag() : "(null)");
|
||||
}
|
||||
|
||||
void tst_SkipGlobal::cleanup()
|
||||
{
|
||||
printf("cleanup %s %s\n",
|
||||
QTest::currentTestFunction() ? QTest::currentTestFunction() : "(null)",
|
||||
QTest::currentDataTag() ? QTest::currentDataTag() : "(null)");
|
||||
}
|
||||
|
||||
void tst_SkipGlobal::testGlobal_data()
|
||||
{
|
||||
QTest::addColumn<bool>("booll");
|
||||
QTest::newRow("local 1") << false;
|
||||
QTest::newRow("local 2") << true;
|
||||
}
|
||||
|
||||
void tst_SkipGlobal::testGlobal()
|
||||
{
|
||||
QFETCH_GLOBAL(bool, booli);
|
||||
printf("global: %d\n", booli);
|
||||
QFETCH(bool, booll);
|
||||
printf("local: %d\n", booll);
|
||||
}
|
||||
|
||||
QTEST_MAIN(tst_SkipGlobal)
|
||||
|
||||
#include "tst_skipglobal.moc"
|
||||
|
|
@ -335,7 +335,6 @@ void tst_Selftests::runSubTest_data()
|
|||
<< "qexecstringlist"
|
||||
<< "singleskip"
|
||||
<< "skip"
|
||||
<< "skipglobal"
|
||||
<< "skipinit"
|
||||
<< "skipinitdata"
|
||||
<< "sleep"
|
||||
|
|
|
|||
Loading…
Reference in New Issue