summaryrefslogtreecommitdiff
path: root/cppu
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-03-18 13:37:29 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-03-18 13:37:29 +0000
commita4632bb6a212a67d0e1e0b1c887ec1cbe30c1cf8 (patch)
tree1587fcd6d0d4abbb7c2089bb81a04492a97c96f6 /cppu
parent16d941cb03d6909cd947b1c910ad3cf199cc1e5e (diff)
only test this on certain archs
Diffstat (limited to 'cppu')
-rw-r--r--cppu/qa/cppumaker/test_cppumaker.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/cppu/qa/cppumaker/test_cppumaker.cxx b/cppu/qa/cppumaker/test_cppumaker.cxx
index 49b0c40109a4..821142a77700 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());