diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-07-13 09:18:07 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-07-13 08:46:50 +0000 |
commit | f4719c4959ac2cd5ebef5bc3e617385639fd5ba4 (patch) | |
tree | 113da486d36409560a21bcbb27f646310e49b905 /sal/qa/osl | |
parent | cba5a9223a7e8141dc171c3e2e992ce1c0df8330 (diff) |
sal: fix remaining loplugin:cppunitassertequals warnings
Change-Id: I9f9b647ed73e06a5e926eff8f95dda92fec134c0
Reviewed-on: https://gerrit.libreoffice.org/27177
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sal/qa/osl')
-rw-r--r-- | sal/qa/osl/file/test_cpy_wrt_file.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sal/qa/osl/file/test_cpy_wrt_file.cxx b/sal/qa/osl/file/test_cpy_wrt_file.cxx index 2addac8cf9ef..3c7c0e315660 100644 --- a/sal/qa/osl/file/test_cpy_wrt_file.cxx +++ b/sal/qa/osl/file/test_cpy_wrt_file.cxx @@ -41,7 +41,7 @@ public: //create a tempfile rtl::OUString aTmpFile; err = FileBase::createTempFile(nullptr, nullptr, &aTmpFile); - CPPUNIT_ASSERT_MESSAGE("temp File creation failed", err == osl::FileBase::E_None); + CPPUNIT_ASSERT_EQUAL_MESSAGE("temp File creation failed", osl::FileBase::E_None, err); //now attempt to open with Create flag an existing file, should get E_EXIST File tmp_file(aTmpFile); @@ -50,7 +50,7 @@ public: rtl::OString sErrorMsg = "Expected that '"; sErrorMsg += rtl::OUStringToOString(aTmpFile, RTL_TEXTENCODING_ASCII_US); sErrorMsg += "' would exist!"; - CPPUNIT_ASSERT_MESSAGE(sErrorMsg.getStr(), err == FileBase::E_EXIST); + CPPUNIT_ASSERT_EQUAL_MESSAGE(sErrorMsg.getStr(), FileBase::E_EXIST, err); char buffer[1]; sal_uInt64 written = 0; @@ -64,7 +64,7 @@ public: CPPUNIT_ASSERT_MESSAGE("close on unconnected file should fail", err != FileBase::E_None); err = ::osl::File::remove(aTmpFile); - CPPUNIT_ASSERT_MESSAGE("temp file should have existed", err == FileBase::E_None); + CPPUNIT_ASSERT_EQUAL_MESSAGE("temp file should have existed", FileBase::E_None, err); } CPPUNIT_TEST_SUITE(test_osl_writeFile); |