Imported Upstream version 1.51.0
[platform/upstream/boost.git] / tools / build / v2 / test / qt4 / qtgui.cpp
1 // (c) Copyright Juergen Hunold 2008
2 // Use, modification and distribution is subject to the Boost Software
3 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
4 // http://www.boost.org/LICENSE_1_0.txt)
5
6 #define BOOST_TEST_MODULE QtGui
7
8 #include <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 }
37
38
39 BOOST_AUTO_TEST_CASE( qtgui_test)
40 {
41     BOOST_CHECK_EQUAL(true, true);
42 }