diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-01-07 15:49:53 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-01-07 20:27:04 +0100 |
commit | 8cd00ec92f291dd01e0eed27fc144785bed5e44e (patch) | |
tree | e8cced2596a69cfd15efe923f9dd9a5f84f7d6e5 /cppu/qa | |
parent | a23084cbeabe0fee7cd7b5e514306edf5dd01c79 (diff) |
Replace a CPPUNIT_ASSERT_EQUAL with a static_assert
Change-Id: I8382aa13eb9c65ae61fc0dbfe440df6718133c18
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86352
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'cppu/qa')
-rw-r--r-- | cppu/qa/cppumaker/test_cppumaker.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cppu/qa/cppumaker/test_cppumaker.cxx b/cppu/qa/cppumaker/test_cppumaker.cxx index 1b8efda8a972..ca81355210bb 100644 --- a/cppu/qa/cppumaker/test_cppumaker.cxx +++ b/cppu/qa/cppumaker/test_cppumaker.cxx @@ -446,13 +446,14 @@ void Test::testBigStruct() { //This is a very platform specific test. #if defined __GNUC__ // see CPPU_GCC3_ALIGN #if defined(LINUX) && (defined (X86_64) || defined(X86) || defined(PPC)) - CPPUNIT_ASSERT_EQUAL( + static_assert( + sizeof (test::codemaker::cppumaker::AlignmentDerivedStruct) == #if defined X86_64 || defined PPC - static_cast< std::size_t >(24), + 24 #else - static_cast< std::size_t >(16), + 16 #endif - sizeof (test::codemaker::cppumaker::AlignmentDerivedStruct)); + ); #endif #endif |