cppu/qa/cppumaker/test_cppumaker.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
New commits: commit 8cd00ec92f291dd01e0eed27fc144785bed5e44e Author: Stephan Bergmann <[email protected]> AuthorDate: Tue Jan 7 15:49:53 2020 +0100 Commit: Stephan Bergmann <[email protected]> CommitDate: Tue Jan 7 20:27:04 2020 +0100 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 <[email protected]> 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 _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
