5

How to make Google Test detect the number of threads on Linux?

view full story
linux-howto

http://stackoverflow.com – When running the death tests written using Google Test framework the following warning is produced for each of the tests: [WARNING] .../gtest-death-test.cc:789:: Death tests use fork(), which is unsafe particularly in a threaded context. For this test, Google Test couldn't detect the number of threads. Is there a way to make Google Test detect the number of threads on Linux? (HowTos)