summaryrefslogtreecommitdiff
path: root/sfx2/qa
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/qa')
-rw-r--r--sfx2/qa/cppunit/test_misc.cxx3
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);