Because LoopThread now works fine with fork(), we don't have to specify this a DeathTest
This commit is contained in:
parent
4f66543cac
commit
c4dfd55c39
@ -68,11 +68,9 @@ void logAndExit(const string &message) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
using LoggingTest_DeathTest = LoggingTest;
|
||||
|
||||
// fork() only forks the main thread. This test ensures that logging doesn't depend on threads that suddenly aren't
|
||||
// there anymore after a fork().
|
||||
TEST_F(LoggingTest_DeathTest, LoggingAlsoWorksAfterFork) {
|
||||
TEST_F(LoggingTest, LoggingAlsoWorksAfterFork) {
|
||||
setLogger(spdlog::stderr_logger_mt("StderrLogger"));
|
||||
EXPECT_EXIT(
|
||||
logAndExit("My log message"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user