diff --git a/test/os-test.cc b/test/os-test.cc
index 44a2988f..2615c317 100644
--- a/test/os-test.cc
+++ b/test/os-test.cc
@@ -269,6 +269,8 @@ TEST(BufferedFileTest, CloseError) {
TEST(BufferedFileTest, Fileno) {
buffered_file f;
# ifndef __COVERITY__
+ // disable warning Death tests use fork(), which is unsafe
+ ::testing::FLAGS_gtest_death_test_style = "threadsafe";
// fileno on a null FILE pointer either crashes or returns an error.
// Disable Coverity because this is intentional.
EXPECT_DEATH_IF_SUPPORTED(
better to be all green