From: Francis Dupont Date: Tue, 12 May 2015 23:33:47 +0000 (+0200) Subject: [3866] restore RW rights, aka #3866 X-Git-Tag: trac3830_base^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=56c08641c3032bdf079fb7adcd70b864aa19ab17;p=thirdparty%2Fkea.git [3866] restore RW rights, aka #3866 --- diff --git a/src/lib/util/tests/pid_file_unittest.cc b/src/lib/util/tests/pid_file_unittest.cc index d966f9257c..a0df57d161 100644 --- a/src/lib/util/tests/pid_file_unittest.cc +++ b/src/lib/util/tests/pid_file_unittest.cc @@ -190,6 +190,9 @@ TEST_F(PIDFileTest, pidWriteFail) { // Now try a write to the file, expecting an exception EXPECT_THROW(pid_file.write(10), PIDFileError); + + // Don't forget to restore the write right for the next test + chmod(absolutePath(TESTNAME).c_str(), S_IRUSR | S_IWUSR); } /// @brief Test deleting a file that doesn't exist