]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/tools/build/test/qt4/qtgui.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / tools / build / test / qt4 / qtgui.cpp
CommitLineData
7c673cae
FG
1// (c) Copyright Juergen Hunold 2008
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 <QApplication>
9
10#include <boost/test/unit_test.hpp>
11
12struct 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
30BOOST_GLOBAL_FIXTURE( Fixture );
31
32BOOST_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
39BOOST_AUTO_TEST_CASE( qtgui_test)
40{
41 BOOST_CHECK_EQUAL(true, true);
42}