/**************************************************************************** ** ** Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Qt Software Information (qt-info@nokia.com) ** ****************************************************************************/ #include class tst_Xunit : public QObject { Q_OBJECT public: tst_Xunit(); private slots: void testFunc1(); void testFunc2(); void testFunc3(); void testFunc4(); }; tst_Xunit::tst_Xunit() { } void tst_Xunit::testFunc1() { QWARN("just a QWARN() !"); QCOMPARE(1,1); } void tst_Xunit::testFunc2() { qDebug("a qDebug() call!"); QCOMPARE(2, 3); } void tst_Xunit::testFunc3() { QSKIP("skipping this function!", SkipAll); } void tst_Xunit::testFunc4() { QFAIL("a forced failure!"); } QTEST_APPLESS_MAIN(tst_Xunit) #include "tst_xunit.moc"