diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-29 09:34:33 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-03-29 14:31:44 +0200 |
commit | f62fcab7f16a2c6abbc37a0d83145e9ded3ad6e3 (patch) | |
tree | 8a6ee9fa9701268e2dd57e6c4d991e2115ada0d2 /sfx2/qa | |
parent | a3c686318230c91fda23f81b6b6cbd759bf80d84 (diff) |
coverity#1433647 Unchecked return value from library
Change-Id: I05c91dc21ddcef0f64f712f4fe9a5736b0cee0f9
Reviewed-on: https://gerrit.libreoffice.org/52059
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/qa')
-rw-r--r-- | sfx2/qa/cppunit/test_misc.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/qa/cppunit/test_misc.cxx b/sfx2/qa/cppunit/test_misc.cxx index 72f21fc66c3a..b7c17a0e1cf3 100644 --- a/sfx2/qa/cppunit/test_misc.cxx +++ b/sfx2/qa/cppunit/test_misc.cxx @@ -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); |