Rearrange the test to prevent undefined reference to init_unit_test_suite,

when:
  - BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION is not defined
  - Toolset is gcc/Linux
  - Boost.Test is built as shared library


[SVN r32703]
This commit is contained in:
Vladimir Prus
2006-02-07 11:55:10 +00:00
parent c75dc3ae02
commit 4b362a9cff

View File

@ -90,6 +90,13 @@ void check_partial_workaround()
}
#else // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
void check_partial_workaround()
{
}
#endif
#include <boost/test/unit_test.hpp>
using boost::unit_test::test_suite;
@ -102,14 +109,3 @@ test_suite* init_unit_test_suite( int argc, char* argv[] )
return test;
}
#else // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
int main()
{
// always succeed
return 0;
}
#endif