diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-02-16 10:21:02 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-02-16 10:21:02 +0100 |
commit | 61699452c0dc8e025e4dc7123ebedf68ee95b4c6 (patch) | |
tree | 3a8d7bfbb939203d4089a76ad3b827b07e134168 | |
parent | f18cb2c196cc5b643b9832dfca1d940b82c832b0 (diff) |
Work around CPPUNIT_ASSERT_EQUAL shortcomings
Change-Id: I377c6b6817a432d1e9d740c7d43233f5b98cd2f6
-rw-r--r-- | vcl/qa/cppunit/blocklistparsertest.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/qa/cppunit/blocklistparsertest.cxx b/vcl/qa/cppunit/blocklistparsertest.cxx index 66a4f7051651..b47b518a7d65 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; |