Remove skipglobal testlib selftest.
authorJason McDonald <jason.mcdonald@nokia.com>
Tue, 18 Oct 2011 03:48:54 +0000 (13:48 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 19 Oct 2011 05:24:26 +0000 (07:24 +0200)
This test duplicates the skipinitdata selftest and has slightly less
informative output.

Change-Id: Ifd40e3ef8030059ec8fa0089ce5b2a994624abeb
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/testlib/selftests/expected_skipglobal.lightxml [deleted file]
tests/auto/testlib/selftests/expected_skipglobal.txt [deleted file]
tests/auto/testlib/selftests/expected_skipglobal.xml [deleted file]
tests/auto/testlib/selftests/expected_skipglobal.xunitxml [deleted file]
tests/auto/testlib/selftests/selftests.pro
tests/auto/testlib/selftests/selftests.qrc
tests/auto/testlib/selftests/skipglobal/skipglobal.pro [deleted file]
tests/auto/testlib/selftests/skipglobal/tst_skipglobal.cpp [deleted file]
tests/auto/testlib/selftests/tst_selftests.cpp

diff --git a/tests/auto/testlib/selftests/expected_skipglobal.lightxml b/tests/auto/testlib/selftests/expected_skipglobal.lightxml
deleted file mode 100644 (file)
index 66084fc..0000000
+++ /dev/null
@@ -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>
diff --git a/tests/auto/testlib/selftests/expected_skipglobal.txt b/tests/auto/testlib/selftests/expected_skipglobal.txt
deleted file mode 100644 (file)
index 22f66e4..0000000
+++ /dev/null
@@ -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 *********
diff --git a/tests/auto/testlib/selftests/expected_skipglobal.xml b/tests/auto/testlib/selftests/expected_skipglobal.xml
deleted file mode 100644 (file)
index 4d25bc9..0000000
+++ /dev/null
@@ -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>
diff --git a/tests/auto/testlib/selftests/expected_skipglobal.xunitxml b/tests/auto/testlib/selftests/expected_skipglobal.xunitxml
deleted file mode 100644 (file)
index cc43ec8..0000000
+++ /dev/null
@@ -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>
index 353e465..a43ecdf 100644 (file)
@@ -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\
index 41fa7e0..10c16cc 100644 (file)
         <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>
diff --git a/tests/auto/testlib/selftests/skipglobal/skipglobal.pro b/tests/auto/testlib/selftests/skipglobal/skipglobal.pro
deleted file mode 100644 (file)
index fb8d40c..0000000
+++ /dev/null
@@ -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
diff --git a/tests/auto/testlib/selftests/skipglobal/tst_skipglobal.cpp b/tests/auto/testlib/selftests/skipglobal/tst_skipglobal.cpp
deleted file mode 100644 (file)
index aec32ed..0000000
+++ /dev/null
@@ -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"
index bf1de19..bbdc5ee 100644 (file)
@@ -335,7 +335,6 @@ void tst_Selftests::runSubTest_data()
         << "qexecstringlist"
         << "singleskip"
         << "skip"
-        << "skipglobal"
         << "skipinit"
         << "skipinitdata"
         << "sleep"