diff options
-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 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); |