ChimeraTK-DeviceAccess
03.18.00
boost_dynamic_init_test.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Deutsches Elektronen-Synchrotron DESY, MSK, ChimeraTK Project <chimeratk-support@desy.de>
2
// SPDX-License-Identifier: LGPL-3.0-or-later
3
#pragma once
4
5
/* Hack to use dynamic linking with a hand-written init_unit_test() function.
6
* 1. Define BOOST_TEST_DYN_LINK and declare init_unit_test().
7
* 2. Only include unit_test_suite.hpp. This will not re-define init_unit_test()
8
* because BOOST_TEST_MAIN is not set yet.
9
* 3. Define BOOST_TEST_MAIN
10
* 4. Include unit_test.hpp, which will define the main function.
11
*/
12
#define BOOST_TEST_DYN_LINK
13
bool
init_unit_test
();
14
#include <boost/test/unit_test_suite.hpp>
15
#define BOOST_TEST_MAIN
16
#include <boost/test/unit_test.hpp>
init_unit_test
bool init_unit_test()
Definition:
testDeviceInfoMap.cpp:63
sources
ChimeraTK-DeviceAccess
tests
include
boost_dynamic_init_test.h
Generated by
1.8.17