mirror of
https://github.com/boostorg/range.git
synced 2025-07-29 04:17:39 +02:00
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:
@ -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>
|
#include <boost/test/unit_test.hpp>
|
||||||
using boost::unit_test::test_suite;
|
using boost::unit_test::test_suite;
|
||||||
@ -102,14 +109,3 @@ test_suite* init_unit_test_suite( int argc, char* argv[] )
|
|||||||
|
|
||||||
return test;
|
return test;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
|
||||||
|
|
||||||
int main()
|
|
||||||
{
|
|
||||||
// always succeed
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user