• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //  (C) Copyright Raffi Enficiaud 2019.
2 //  Distributed under the Boost Software License, Version 1.0.
3 //  (See accompanying file LICENSE_1_0.txt or copy at
4 //  http://www.boost.org/LICENSE_1_0.txt)
5 
6 //  See http://www.boost.org/libs/test for the library home page.
7 //
8 // ***************************************************************************
9 
10 // Boost.Test
11 #include <boost/test/unit_test.hpp>
12 #include <boost/test/unit_test_parameters.hpp>
13 
init_unit_test()14 bool init_unit_test()
15 {
16   using namespace boost::unit_test;
17 
18 // Having some problems on AppleClang 10.10 / Xcode 6/7
19 #if !defined(BOOST_TEST_DYN_LINK) || (!defined(BOOST_CLANG) || (BOOST_CLANG != 1) || (__clang_major__ >= 8))
20   log_level logLevel = runtime_config::get<log_level>(runtime_config::btrt_log_level);
21   std::cout << "Current log level: " << static_cast<int>(logLevel) << std::endl;
22 #endif
23   return true;
24 }
25 
BOOST_AUTO_TEST_CASE(my_test1)26 BOOST_AUTO_TEST_CASE( my_test1 )
27 {
28     BOOST_CHECK( true );
29 }
30 
main(int argc,char * argv[])31 int main(int argc, char* argv[])
32 {
33   int retCode = boost::unit_test::unit_test_main( &init_unit_test, argc, argv );
34   return retCode;
35 }
36