[Libreoffice-commits] .: cppu/qa

Caolán McNamara caolan at kemper.freedesktop.org
Fri Mar 18 06:37:36 PDT 2011


 cppu/qa/cppumaker/test_cppumaker.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit fddd331a798ae1b017a744c8d0a74b665968218c
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Mar 18 13:37:29 2011 +0000

    only test this on certain archs

diff --git a/cppu/qa/cppumaker/test_cppumaker.cxx b/cppu/qa/cppumaker/test_cppumaker.cxx
index d2a0b55..c418d75 100644
--- a/cppu/qa/cppumaker/test_cppumaker.cxx
+++ b/cppu/qa/cppumaker/test_cppumaker.cxx
@@ -444,7 +444,9 @@ void Test::testBigStruct() {
     CPPUNIT_ASSERT_EQUAL(guard.p->m22.getLength(), static_cast< sal_Int32 >(0));
     CPPUNIT_ASSERT_EQUAL(guard.p->m23.getLength(), static_cast< sal_Int32 >(0));
 
+//This is a very platform specific test.
 #if defined __GNUC__ && __GNUC__ >= 3 // see CPPU_GCC3_ALIGN
+#if defined(LINUX) && (defined (X86_64) || defined(X86) || defined(PPC))
     CPPUNIT_ASSERT_EQUAL(
 #if defined X86_64 || defined PPC
         static_cast< std::size_t >(24),
@@ -453,6 +455,7 @@ void Test::testBigStruct() {
 #endif
         sizeof (test::codemaker::cppumaker::AlignmentDerivedStruct));
 #endif
+#endif
 
     com::sun::star::uno::Type t(
         cppu::UnoType< test::codemaker::cppumaker::BigStruct >::get());


More information about the Libreoffice-commits mailing list