Test order bug in stats library
Found on FreeBSD but not related to the system, only to the order unit tests are run:
ObservationTest::setCountLimit unit test is the first unit test of observation_unittest.cc which relies on the default max count so fails if stats manager unit tests are run before. Two fixes:
- make stats manager to restore defaults for instance using a RAII setter.
- add
Observation::setMaxSampleCountDefault(20);
in the ObservationTest fixture constructor body.
(I used the second with success)