2022-05-10 10:06:48 +00:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
|
2020-11-26 16:31:50 +00:00
|
|
|
#include <QTest>
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
class tst_SkipInitData: public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
private slots:
|
|
|
|
void initTestCase_data() const;
|
|
|
|
void initTestCase() const;
|
|
|
|
void aTestFunction() const;
|
|
|
|
};
|
|
|
|
|
|
|
|
void tst_SkipInitData::initTestCase_data() const
|
|
|
|
{
|
2011-10-18 04:53:23 +00:00
|
|
|
QSKIP("Skip inside initTestCase_data. This should skip all tests in the class.");
|
2011-04-27 10:05:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void tst_SkipInitData::initTestCase() const
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/*! \internal
|
|
|
|
This function should never be run because initTestCase fails.
|
|
|
|
*/
|
|
|
|
void tst_SkipInitData::aTestFunction() const
|
|
|
|
{
|
|
|
|
qDebug() << "ERROR: this function is NOT supposed to be run.";
|
|
|
|
}
|
|
|
|
|
|
|
|
QTEST_APPLESS_MAIN(tst_SkipInitData)
|
|
|
|
|
|
|
|
#include "tst_skipinitdata.moc"
|