]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | // (c) Copyright Juergen Hunold 2012 |
2 | // Use, modification and distribution is subject to the Boost Software | |
1e59de90 TL |
3 | // License, Version 1.0. (See accompanying file LICENSE.txt or copy at |
4 | // https://www.bfgroup.xyz/b2/LICENSE.txt) | |
7c673cae FG |
5 | |
6 | #define BOOST_TEST_MODULE QtGui | |
7 | ||
8 | #include <QtWidgets/QApplication> | |
9 | ||
10 | #include <boost/test/unit_test.hpp> | |
11 | ||
12 | struct Fixture | |
13 | { | |
14 | Fixture() | |
15 | : application(boost::unit_test::framework::master_test_suite().argc, | |
16 | boost::unit_test::framework::master_test_suite().argv, | |
17 | false) | |
18 | { | |
19 | BOOST_TEST_MESSAGE( "setup QApplication fixture" ); | |
20 | } | |
21 | ||
22 | ~Fixture() | |
23 | { | |
24 | BOOST_TEST_MESSAGE( "teardown QApplication fixture" ); | |
25 | } | |
26 | ||
27 | QApplication application; | |
28 | }; | |
29 | ||
30 | BOOST_GLOBAL_FIXTURE( Fixture ); | |
31 | ||
32 | BOOST_AUTO_TEST_CASE( defines) | |
33 | { | |
34 | BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_CORE_LIB), true); | |
35 | BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_GUI_LIB), true); | |
36 | BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_WIDGETS_LIB), true); | |
37 | } | |
38 | ||
39 | ||
40 | BOOST_AUTO_TEST_CASE( qtgui_test) | |
41 | { | |
42 | BOOST_CHECK_EQUAL(true, true); | |
43 | } |