Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

BOOST_TEST_MAIN

When defined, this macro creates a stub for the test module initialization (the main entry part). This macro also expands properly into a main function in case the shared library variant of the Unit Test Framework is used.

[Caution] Caution

This macro should

  1. be defined before any inclusion directive to Unit Test Framework headers
  2. be defined exactly for one compilation unit of your test module
[Tip] Tip

The macro BOOST_TEST_MODULE should be preferred


PrevUpHomeNext