logging: add more tests for fatal log messages
authorAdam Simpkins <simpkins@fb.com>
Thu, 22 Jun 2017 00:05:20 +0000 (17:05 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 22 Jun 2017 00:06:03 +0000 (17:06 -0700)
commitcffc8a776b21a070f0af6ed0748452c329ad6e5f
treea9cf14fb9bf992e7962d91e3f2313da09a784f0d
parent703049c3e12de7abe34c44e3862f44e593cf2b90
logging: add more tests for fatal log messages

Summary:
Add some tests for fatal log messages during static initialization and
destruction.  Ideally most programs won't actually do much real work before or
after main, but make sure the logging framework behaves sanely in these
situations.

This also fixes a bug in the `test_none()` test, which previously caused it to
always succeed without testing the desired behavior.

Reviewed By: wez

Differential Revision: D5281718

fbshipit-source-id: ca838c098886e99418264acf9a4d651ea9e7502c
folly/experimental/logging/test/FatalHelper.cpp
folly/experimental/logging/test/fatal_test.py