The Death
functionality allows final callbacks when fatal signal errors or g3log
fatal events are received.
Examples of fatal signal errors are:
SIGSEGV
SIGABRT
SIGFPE
SIGILL
SIGTERM
Ref: [g3logksignals
]
Examples of g3log fatal events are
LOG(FATAL) --> FATAL logging event
CHECK(<expression == false>) --> FATAL contract event
DeathKnell is an extension to the fatal handling provided by [g3log]. The extension makes is significantly easier to unit test fatal event handling.
The API is available in the [Death.h] header file. API usage is best read in the [unit tests].
Example of installation
cd DeathKnell
cd 3rdparty
unzip gtest-1.7.0.zip
cd ..
mkdir build
cd build
cmake ..
make -j
./UnitTestRunneer
sudo make install
Alternative on Debian systems
make package
sudo dpkg -i DeathKnell-<package_version>Linux.deb