test_exec_monitor.hpp 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. // (C) Copyright Gennadiy Rozental 2001.
  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. // See http://www.boost.org/libs/test for the library home page.
  6. //
  7. /// @file
  8. /// @brief Deprecated implementation of Test Execution Monitor
  9. ///
  10. /// To convert to Unit Test Framework simply rewrite:
  11. /// @code
  12. /// #include <boost/test/test_exec_monitor.hpp>
  13. ///
  14. /// int test_main( int, char *[] )
  15. /// {
  16. /// ...
  17. /// }
  18. /// @endcode
  19. /// as
  20. /// @code
  21. /// #include <boost/test/unit_test.hpp>
  22. ///
  23. /// BOOST_AUTO_TEST_CASE(test_main)
  24. /// {
  25. /// ...
  26. /// }
  27. /// @endcode
  28. /// and link with boost_unit_test_framework library *instead of* boost_test_exec_monitor
  29. // ***************************************************************************
  30. #ifndef BOOST_TEST_EXEC_MONITOR_HPP_071894GER
  31. #define BOOST_TEST_EXEC_MONITOR_HPP_071894GER
  32. // Boost.Test
  33. #include <boost/test/test_tools.hpp>
  34. //____________________________________________________________________________//
  35. // ************************************************************************** //
  36. // ************** Auto Linking ************** //
  37. // ************************************************************************** //
  38. // Automatically link to the correct build variant where possible.
  39. #if !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_TEST_NO_LIB) && \
  40. !defined(BOOST_TEST_SOURCE) && !defined(BOOST_TEST_INCLUDED)
  41. # define BOOST_LIB_NAME boost_test_exec_monitor
  42. # include <boost/config/auto_link.hpp>
  43. #endif // auto-linking disabled
  44. #endif // BOOST_TEST_EXEC_MONITOR_HPP_071894GER