Kaydet (Commit) f62fcab7 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1433647 Unchecked return value from library

Change-Id: I05c91dc21ddcef0f64f712f4fe9a5736b0cee0f9
Reviewed-on: https://gerrit.libreoffice.org/52059Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst a3c68631
......@@ -171,7 +171,8 @@ void MiscTest::testHardLinks()
xStorable->store();
struct stat buf;
stat(aOld.getStr(), &buf);
int nRet = stat(aOld.getStr(), &buf);
CPPUNIT_ASSERT_EQUAL(nRet, 0);
// This failed: hard link count was 1, the hard link broke on store.
CPPUNIT_ASSERT(buf.st_nlink > 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment