Because LoopThread now works fine with fork(), we don't have to specify this a DeathTest

This commit is contained in:
Sebastian Messmer 2015-10-28 15:20:55 +01:00
parent 4f66543cac
commit c4dfd55c39
1 changed files with 1 additions and 3 deletions

View File

@ -68,11 +68,9 @@ void logAndExit(const string &message) {
exit(1); 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 // 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(). // there anymore after a fork().
TEST_F(LoggingTest_DeathTest, LoggingAlsoWorksAfterFork) { TEST_F(LoggingTest, LoggingAlsoWorksAfterFork) {
setLogger(spdlog::stderr_logger_mt("StderrLogger")); setLogger(spdlog::stderr_logger_mt("StderrLogger"));
EXPECT_EXIT( EXPECT_EXIT(
logAndExit("My log message"), logAndExit("My log message"),