ensure that raise(SIGTERM) is not called in test if g3log was compiled without fatal signal handler

This commit is contained in:
SchoenleAndi 2016-12-05 10:48:52 +01:00
parent a1748ce66b
commit a98b91fc5c

View File

@ -311,6 +311,7 @@ TEST(LogTest, LOGF__FATAL) {
EXPECT_TRUE(verifyContent(file_content, "FATAL"));
}
#ifndef DISABLE_FATAL_SIGNALHANDLING
TEST(LogTest, FatalSIGTERM__UsingDefaultHandler) {
RestoreFileLogger logger(log_directory);
@ -383,7 +384,7 @@ TEST(LogTest, FatalSIGTERM__UsingCustomHandler) {
}
#endif
#endif
TEST(LogTest, LOG_preFatalLogging_hook) {
{