Disabled intrinsic type traits testing for SGI compiler.

Disabled one is_convertible test for aCC on PA RISC.
Disabled some tests in promote_basic_test.cpp for more platforms that have broken WCHAR_MAX macros.

[SVN r40294]
This commit is contained in:
John Maddock
2007-10-22 17:48:51 +00:00
parent ec72b74218
commit 295936b175
4 changed files with 13 additions and 4 deletions

View File

@ -27,7 +27,7 @@ TT_TEST_BEGIN(is_class)
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_class<f1>::value, false);
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_class<enum_UDT>::value, false);
#ifdef BOOST_HAS_TYPE_TRAITS_INTRINSICS
#if defined(BOOST_HAS_TYPE_TRAITS_INTRINSICS) && !defined(__sgi)
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_class<union_UDT>::value, false);
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_class<POD_union_UDT>::value, false);
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_class<empty_union_UDT>::value, false);

View File

@ -84,7 +84,11 @@ BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_convertible<non_int_pointer, void*>::val
BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_convertible<test_abc1&, test_abc2&>::value), false);
BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_convertible<test_abc1&, int_constructible>::value), false);
BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_convertible<int_constructible, test_abc1&>::value), false);
#ifndef BOOST_NO_IS_ABSTRACT
#if !defined(BOOST_NO_IS_ABSTRACT) && !(defined(__hppa) && defined(__HP_aCC))
//
// This doesn't work with aCC on PA RISC even though the is_abstract tests do
// all pass, this may indicate a deeper problem...
//
BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_convertible<test_abc1&, test_abc2>::value), false);
#endif

View File

@ -26,7 +26,7 @@ TT_TEST_BEGIN(is_union)
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_union<f1>::value, false);
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_union<enum_UDT>::value, false);
#ifdef BOOST_HAS_TYPE_TRAITS_INTRINSICS
#if defined(BOOST_HAS_TYPE_TRAITS_INTRINSICS) && !defined(__sgi)
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_union<union_UDT>::value, true);
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_union<POD_union_UDT>::value, true);
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_union<empty_union_UDT>::value, true);

View File

@ -84,7 +84,11 @@ int main()
#endif
// For this PP-logic to work we need a valid WCHAR_MAX etc:
#if defined(BOOST_TT_AUX_WCHAR_MAX) && !defined(__DECCXX)
#if defined(BOOST_TT_AUX_WCHAR_MAX) \
&& !defined(__DECCXX) \
&& !defined(__hpux) \
&& !defined(_WIN32_WCE)
#if BOOST_TT_AUX_WCHAR_MAX <= INT_MAX
test_cv< wchar_t, int >();
#elif WCHAR_MIN == 0 && BOOST_TT_AUX_WCHAR_MAX <= UINT_MAX
@ -94,6 +98,7 @@ int main()
#else
test_cv< wchar_t, unsigned long >();
#endif
#endif
#undef BOOST_TT_AUX_WCHAR_MAX