You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Google Test produces the following warning for every death test on Linux:
[WARNING] .../gtest/src/gtest-death-test.cc:825:: Death tests use fork(), which
is unsafe particularly in a threaded context. For this test, Google Test
couldn't detect the number of threads.
Here's the code that reproduces the problem:
TEST(Test, Death) {
EXPECT_DEATH(exit(1), "");
}
This is trivially fixed with the attached patch.
I'm using Google Test 1.7.0.
Original issue reported on code.google.com by [email protected] on 4 Jun 2014 at 9:15
Original issue reported on code.google.com by
[email protected]
on 4 Jun 2014 at 9:15Attachments:
The text was updated successfully, but these errors were encountered: