From 4b362a9cff8881475a7d493492f1c7a0cfe18b81 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Tue, 7 Feb 2006 11:55:10 +0000 Subject: [PATCH] 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] --- test/partial_workaround.cpp | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/test/partial_workaround.cpp b/test/partial_workaround.cpp index 9502be4..ba014ae 100755 --- a/test/partial_workaround.cpp +++ b/test/partial_workaround.cpp @@ -90,6 +90,13 @@ void check_partial_workaround() } +#else // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION + +void check_partial_workaround() +{ +} + +#endif #include 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 -