From 757b0529c42690988f565ca03194900c4d1289f8 Mon Sep 17 00:00:00 2001 From: Jason McDonald Date: Mon, 17 Oct 2011 17:04:39 +1000 Subject: Remove QTEST_NOOP_MAIN from qtestlib API. This macro is no longer used in Qt's tests and encourages writing tests in a way that makes test reporting less accurate -- remove it to prevent further misuse. If a test can be determined at compile-time to be inapplicable, it should be omitted from the build via .pro file logic. If that is not possible (e.g. there is no suitable qmake variable), the test's initTestCase() function should call QSKIP to skip the entire test with a meaningful explanation. Task-number: QTBUG-21851 Change-Id: Icacc8c5567a700191b6ef3fa94ee52ede94c5b34 Reviewed-by: Rohan McGovern --- doc/src/snippets/code/src_qtestlib_qtestcase.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'doc') diff --git a/doc/src/snippets/code/src_qtestlib_qtestcase.cpp b/doc/src/snippets/code/src_qtestlib_qtestcase.cpp index 986026f089..5b1f558610 100644 --- a/doc/src/snippets/code/src_qtestlib_qtestcase.cpp +++ b/doc/src/snippets/code/src_qtestlib_qtestcase.cpp @@ -123,16 +123,6 @@ QTEST_MAIN(TestQString) //! [11] -//! [12] -#ifdef Q_WS_X11 - QTEST_MAIN(MyX11Test) -#else - // do nothing on non-X11 platforms - QTEST_NOOP_MAIN -#endif -//! [12] - - //! [13] QTest::keyClick(myWidget, 'a'); //! [13] -- cgit v1.2.3