[Libreoffice-commits] core.git: sfx2/qa
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sat Sep 15 16:17:21 UTC 2018
sfx2/qa/cppunit/test_misc.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 1c7cd5cfba5d3a0812cf205057806f046a088d9d
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Sep 15 13:28:57 2018 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Sat Sep 15 18:17:01 2018 +0200
coverity#1439340 Unchecked return value from library
Change-Id: I62caea8487d620d09f5aefad585afa3e5b37e182
Reviewed-on: https://gerrit.libreoffice.org/60519
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sfx2/qa/cppunit/test_misc.cxx b/sfx2/qa/cppunit/test_misc.cxx
index 83c4c8db77f7..4f4920185e0d 100644
--- a/sfx2/qa/cppunit/test_misc.cxx
+++ b/sfx2/qa/cppunit/test_misc.cxx
@@ -187,7 +187,8 @@ void MiscTest::testHardLinks()
CPPUNIT_ASSERT(buf.st_nlink > 1);
// Test that symlinks are presreved as well.
- remove(aNew.getStr());
+ nRet = remove(aNew.getStr());
+ CPPUNIT_ASSERT_EQUAL(0, nRet);
symlink(aOld.getStr(), aNew.getStr());
xStorable->storeToURL(aURL + ".2", {});
nRet = lstat(aNew.getStr(), &buf);
More information about the Libreoffice-commits
mailing list