g3log/test_unit
Jeff Ebert 408061280f restore original sigaction in restoreSignalHandler (#254)
* restore original sigaction in restoreSignalHandler

- Save original sigactions in a map called gSavedSigActions
- In restoreSignalHandler, do nothing if there is no saved sigaction.
  If there is a saved sigaction, then re-install it.
- Fixes issue #253

* fix bug found in code review of PR #254

* add functions for reporting sigaction errors

- Factor out reportSigactionError functions from functions that
  call sigaction to allow unit testing.
- Use strsignal libc function to convert from signal number to name
  to eliminate chance of not finding the name in {g,k}Signals maps.

* cleanup. perror doesn't need a wrapper. put code under test
2018-03-25 21:43:49 -06:00
..
test_concept_sink.cpp G3log placeholder thread ID formatting (#248) 2018-03-08 09:16:12 -07:00
test_cpp_future_concepts.cpp Gimesketvirtadien's time requested changes (#104) 2016-08-11 00:27:52 -06:00
test_crashhandler_windows.cpp Improved copy constructors and assignment operator which is needed now when LOGLEVELS can be made on the fly 2015-08-12 06:43:24 -06:00
test_filechange.cpp Addressing the std2 concern raised in https://github.com/KjellKod/g3log/issues/212 (#246) 2018-02-20 22:02:19 -07:00
test_io.cpp restore original sigaction in restoreSignalHandler (#254) 2018-03-25 21:43:49 -06:00
test_linux_dynamic_loaded_sharedlib.cpp Addressing the std2 concern raised in https://github.com/KjellKod/g3log/issues/212 (#246) 2018-02-20 22:02:19 -07:00
test_message.cpp G3log placeholder thread ID formatting (#248) 2018-03-08 09:16:12 -07:00
test_sink.cpp Addressing the std2 concern raised in https://github.com/KjellKod/g3log/issues/212 (#246) 2018-02-20 22:02:19 -07:00
Test.cmake CMake messages changed to message( STATUS "..." ) (#190) 2017-05-17 14:31:19 -06:00
tester_sharedlib.cpp Cross-compiling: Version readout fixed (#189) 2017-05-17 14:24:11 -06:00
tester_sharedlib.h Renamed directories for a cleaner project structure 2014-10-03 01:20:33 -06:00
testing_helpers.cpp Addressing the std2 concern raised in https://github.com/KjellKod/g3log/issues/212 (#246) 2018-02-20 22:02:19 -07:00
testing_helpers.h G3log placeholder thread ID formatting (#248) 2018-03-08 09:16:12 -07:00