iceoryx2
C++ Language Bindings
Loading...
Searching...
No Matches
testing_logger.hpp File Reference
#include "iox2/bb/detail/attributes.hpp"
#include "iox2/legacy/log/building_blocks/logformat.hpp"
#include "iox2/legacy/log/logger.hpp"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <functional>
#include <iostream>
#include <mutex>
#include <csignal>
#include <cstdio>
#include <cstring>
#include <setjmp.h>

Go to the source code of this file.

Classes

class  iox2::bb::testing::LogPrinter
 This class hooks into gTest to automatically clear the log messages on the start of a test an print the cached log messages from failed tests. More...
 
class  iox2::bb::testing::TestingLogger
 This logger is used for tests. It caches all the log messages and prints them to the console when a test fails. For debug purposes this behaviour can be overwritten with the 'IOX2_TESTING_ALLOW_LOG' environment variable, e.g. 'IOX2_TESTING_ALLOW_LOG=ON ./hoofs_moduletests –gtest_filter=SharedMemoryObject_Test*'. Furthermore, it can also be used to check for the occurrence on specific log messages, e.g. when a function is expected to log an error. More...
 

Namespaces

namespace  iox2
 
namespace  iox2::bb
 
namespace  iox2::bb::testing
 
namespace  iox2::bb::testing::detail
 

Functions

static void iox2::bb::testing::detail::sig_handler_flush_logger (int sig, siginfo_t *info IOX2_MAYBE_UNUSED, void *ucontext IOX2_MAYBE_UNUSED)
 

Variables

static jmp_buf iox2::bb::testing::detail::exit_jmp_buffer