Rename test class.
Fixes warning from tst_maketestselftest about test class name not matching TARGET. Change-Id: I7a81d87bb64d2902e842d097248e33eacb388746 Reviewed-by: Rohan McGovern (cherry picked from commit 069e4441f2e14a82b4ae39601734acb71c909bd9)
This commit is contained in:
parent
fc52cbbc13
commit
11b8382d41
@ -60,7 +60,7 @@ QT_USE_NAMESPACE
|
|||||||
#include "3rdparty/memcheck.h"
|
#include "3rdparty/memcheck.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class tst_ExceptionSafetyObjects: public QObject
|
class tst_ExceptionSafety_Objects: public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
@ -156,7 +156,7 @@ struct DirCreator : public AbstractTester
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
void tst_ExceptionSafetyObjects::objects_data()
|
void tst_ExceptionSafety_Objects::objects_data()
|
||||||
{
|
{
|
||||||
QTest::addColumn<AbstractTester *>("objectCreator");
|
QTest::addColumn<AbstractTester *>("objectCreator");
|
||||||
|
|
||||||
@ -274,9 +274,9 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
QtMsgHandler tst_ExceptionSafetyObjects::testMessageHandler;
|
QtMsgHandler tst_ExceptionSafety_Objects::testMessageHandler;
|
||||||
|
|
||||||
void tst_ExceptionSafetyObjects::safeMessageHandler(QtMsgType type, const char *msg)
|
void tst_ExceptionSafety_Objects::safeMessageHandler(QtMsgType type, const char *msg)
|
||||||
{
|
{
|
||||||
// this temporarily suspends OOM testing while handling a message
|
// this temporarily suspends OOM testing while handling a message
|
||||||
int currentIndex = mallocFailIndex;
|
int currentIndex = mallocFailIndex;
|
||||||
@ -301,7 +301,7 @@ void debugUnexpected()
|
|||||||
(*defaultUnexpected)();
|
(*defaultUnexpected)();
|
||||||
}
|
}
|
||||||
|
|
||||||
void tst_ExceptionSafetyObjects::initTestCase()
|
void tst_ExceptionSafety_Objects::initTestCase()
|
||||||
{
|
{
|
||||||
// set handlers for bad exception cases, you might want to step in and breakpoint the default handlers too
|
// set handlers for bad exception cases, you might want to step in and breakpoint the default handlers too
|
||||||
defaultTerminate = std::set_terminate(&debugTerminate);
|
defaultTerminate = std::set_terminate(&debugTerminate);
|
||||||
@ -345,12 +345,12 @@ void tst_ExceptionSafetyObjects::initTestCase()
|
|||||||
QCOMPARE(malloc2Failed, 1);
|
QCOMPARE(malloc2Failed, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tst_ExceptionSafetyObjects::cleanupTestCase()
|
void tst_ExceptionSafety_Objects::cleanupTestCase()
|
||||||
{
|
{
|
||||||
qInstallMsgHandler(testMessageHandler);
|
qInstallMsgHandler(testMessageHandler);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tst_ExceptionSafetyObjects::objects()
|
void tst_ExceptionSafety_Objects::objects()
|
||||||
{
|
{
|
||||||
QSKIP("This test currently crashes", SkipAll);
|
QSKIP("This test currently crashes", SkipAll);
|
||||||
QFETCH(AbstractTester *, objectCreator);
|
QFETCH(AbstractTester *, objectCreator);
|
||||||
@ -389,7 +389,7 @@ template <> struct WidgetCreator<QDesktopWidget> : public AbstractTester
|
|||||||
QScopedPointer<QDesktopWidget> ptr(new QDesktopWidget());
|
QScopedPointer<QDesktopWidget> ptr(new QDesktopWidget());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
void tst_ExceptionSafetyObjects::widgets_data()
|
void tst_ExceptionSafety_Objects::widgets_data()
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_SYMBIAN
|
#ifdef Q_OS_SYMBIAN
|
||||||
// Initialise the S60 rasteriser, which crashes if started while out of memory
|
// Initialise the S60 rasteriser, which crashes if started while out of memory
|
||||||
@ -456,7 +456,7 @@ void tst_ExceptionSafetyObjects::widgets_data()
|
|||||||
NEWROW(QTreeWidget);
|
NEWROW(QTreeWidget);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tst_ExceptionSafetyObjects::widgets()
|
void tst_ExceptionSafety_Objects::widgets()
|
||||||
{
|
{
|
||||||
QSKIP("This test currently crashes", SkipAll);
|
QSKIP("This test currently crashes", SkipAll);
|
||||||
QFETCH(AbstractTester *, widgetCreator);
|
QFETCH(AbstractTester *, widgetCreator);
|
||||||
@ -722,12 +722,12 @@ static void containerData()
|
|||||||
QTest::newRow("erase moveable") << static_cast<TestFunction>(containerEraseTest<IntegerMoveable, Container>);
|
QTest::newRow("erase moveable") << static_cast<TestFunction>(containerEraseTest<IntegerMoveable, Container>);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tst_ExceptionSafetyObjects::vector_data()
|
void tst_ExceptionSafety_Objects::vector_data()
|
||||||
{
|
{
|
||||||
containerData<QVector>();
|
containerData<QVector>();
|
||||||
}
|
}
|
||||||
|
|
||||||
void tst_ExceptionSafetyObjects::vector()
|
void tst_ExceptionSafety_Objects::vector()
|
||||||
{
|
{
|
||||||
QFETCH(TestFunction, testFunction);
|
QFETCH(TestFunction, testFunction);
|
||||||
|
|
||||||
@ -738,30 +738,30 @@ void tst_ExceptionSafetyObjects::vector()
|
|||||||
doOOMTest(testFunction, 0);
|
doOOMTest(testFunction, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tst_ExceptionSafetyObjects::list_data()
|
void tst_ExceptionSafety_Objects::list_data()
|
||||||
{
|
{
|
||||||
containerData<QList>();
|
containerData<QList>();
|
||||||
}
|
}
|
||||||
|
|
||||||
void tst_ExceptionSafetyObjects::list()
|
void tst_ExceptionSafety_Objects::list()
|
||||||
{
|
{
|
||||||
QFETCH(TestFunction, testFunction);
|
QFETCH(TestFunction, testFunction);
|
||||||
|
|
||||||
doOOMTest(testFunction, 0);
|
doOOMTest(testFunction, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tst_ExceptionSafetyObjects::linkedList_data()
|
void tst_ExceptionSafety_Objects::linkedList_data()
|
||||||
{
|
{
|
||||||
containerData<QLinkedList>();
|
containerData<QLinkedList>();
|
||||||
}
|
}
|
||||||
|
|
||||||
void tst_ExceptionSafetyObjects::linkedList()
|
void tst_ExceptionSafety_Objects::linkedList()
|
||||||
{
|
{
|
||||||
QFETCH(TestFunction, testFunction);
|
QFETCH(TestFunction, testFunction);
|
||||||
|
|
||||||
doOOMTest(testFunction, 0);
|
doOOMTest(testFunction, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
QTEST_MAIN(tst_ExceptionSafetyObjects)
|
QTEST_MAIN(tst_ExceptionSafety_Objects)
|
||||||
#include "tst_exceptionsafety_objects.moc"
|
#include "tst_exceptionsafety_objects.moc"
|
||||||
#endif // QT_NO_EXCEPTIONS
|
#endif // QT_NO_EXCEPTIONS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user