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