[Libreoffice-commits] core.git: vcl/qa
Stephan Bergmann
sbergman at redhat.com
Tue Feb 16 09:21:32 UTC 2016
vcl/qa/cppunit/blocklistparsertest.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 61699452c0dc8e025e4dc7123ebedf68ee95b4c6
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue Feb 16 10:21:02 2016 +0100
Work around CPPUNIT_ASSERT_EQUAL shortcomings
Change-Id: I377c6b6817a432d1e9d740c7d43233f5b98cd2f6
diff --git a/vcl/qa/cppunit/blocklistparsertest.cxx b/vcl/qa/cppunit/blocklistparsertest.cxx
index 66a4f70..b47b518 100644
--- a/vcl/qa/cppunit/blocklistparsertest.cxx
+++ b/vcl/qa/cppunit/blocklistparsertest.cxx
@@ -39,7 +39,8 @@ void BlocklistParserTest::testParse()
WinBlocklistParser aBlocklistParser(getURLFromSrc("vcl/qa/cppunit/") + "test_blocklist_parse.xml", aDriveInfos);
aBlocklistParser.parse();
- CPPUNIT_ASSERT_EQUAL(20U, aDriveInfos.size());
+ auto const n = aDriveInfos.size();
+ CPPUNIT_ASSERT_EQUAL(static_cast<decltype(n)>(20), n);
size_t i = 0;
More information about the Libreoffice-commits
mailing list