Skip to content

Commit 52204f7

Browse files
suertreuscopybara-github
authored andcommitted
Remove obsolete references to LinuxThreads.
PiperOrigin-RevId: 740860675 Change-Id: I73bf9fd36e6135eb7577da54254254df7eebdf7b
1 parent 2ae29b5 commit 52204f7

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

docs/faq.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -511,19 +511,6 @@ However, there are cases where you have to define your own:
511511
list of the constructor. (Early versions of `gcc` doesn't force you to
512512
initialize the const member. It's a bug that has been fixed in `gcc 4`.)
513513
514-
## Why does ASSERT_DEATH complain about previous threads that were already joined?
515-
516-
With the Linux pthread library, there is no turning back once you cross the line
517-
from a single thread to multiple threads. The first time you create a thread, a
518-
manager thread is created in addition, so you get 3, not 2, threads. Later when
519-
the thread you create joins the main thread, the thread count decrements by 1,
520-
but the manager thread will never be killed, so you still have 2 threads, which
521-
means you cannot safely run a death test.
522-
523-
The new NPTL thread library doesn't suffer from this problem, as it doesn't
524-
create a manager thread. However, if you don't control which machine your test
525-
runs on, you shouldn't depend on this.
526-
527514
## Why does GoogleTest require the entire test suite, instead of individual tests, to be named `*DeathTest` when it uses `ASSERT_DEATH`?
528515
529516
GoogleTest does not interleave tests from different test suites. That is, it

0 commit comments

Comments
 (0)