]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3866] restore RW rights, aka #3866
authorFrancis Dupont <fdupont@isc.org>
Tue, 12 May 2015 23:33:47 +0000 (01:33 +0200)
committerFrancis Dupont <fdupont@isc.org>
Tue, 12 May 2015 23:33:47 +0000 (01:33 +0200)
src/lib/util/tests/pid_file_unittest.cc

index d966f9257c799c62a50b24a7c14e6bf6077f28e1..a0df57d161933b3ebfb55a95ac0df4b107e353ea 100644 (file)
@@ -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