mirror of
https://github.com/boostorg/test.git
synced 2026-01-26 07:02:12 +00:00
borland workarounds
[SVN r15087]
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -8,6 +8,10 @@
|
||||
|
||||
// See http://www.boost.org for updates, documentation, and revision history.
|
||||
|
||||
#if defined(__BORLANDC__) && (__BORLANDC__ < 0x560)
|
||||
#define _RWSTD_NO_CLASS_PARTIAL_SPEC
|
||||
#endif
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <boost/test/unit_test_result.hpp>
|
||||
#include <boost/test/detail/unit_test_parameters.hpp>
|
||||
@@ -174,10 +178,19 @@ test_main( int argc, char * argv[] ) {
|
||||
test.add( BOOST_CLASS_TEST_CASE( &bad_test::test, bad_test_instance ) );
|
||||
break;
|
||||
case tct_param_free_function:
|
||||
// Borland bug workaround
|
||||
#if defined(__BORLANDC__) && (__BORLANDC__ < 0x560)
|
||||
test.add( boost::unit_test_framework::create_test_case<int*,int>( &bad_function_param, std::string( "bad_function_param" ), (int*)params, params+1 ) );
|
||||
#else
|
||||
test.add( BOOST_PARAM_TEST_CASE( &bad_function_param, (int*)params, params+1 ) );
|
||||
#endif
|
||||
break;
|
||||
case tct_param_user_test_case:
|
||||
#if defined(__BORLANDC__) && (__BORLANDC__ < 0x560)
|
||||
test.add( boost::unit_test_framework::create_test_case<bad_test,int*,int>( &bad_test::test_param, std::string( "bad_test::test_param" ), bad_test_instance, (int*)params, params+1 ) );
|
||||
#else
|
||||
test.add( BOOST_PARAM_CLASS_TEST_CASE( &bad_test::test_param, bad_test_instance, (int*)params, params+1 ) );
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user