Skip to content

disable warning in os-test.cc #2437

Description

@abar52

better to be all green

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(

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions