Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
The calls that we have for the clock should be changed to allow for mocking. This will help to fix an issue with running the tests that require a clock to run, e.g. the rolling file appender tests. By manually advancing the clock, we should be able to avoid any problems with scheduling differences.
This is also a good place to remove the apr_* calls and replace them with their C++ standard components.
See this thread for more information: https://lists.apache.org/thread.html/rfc5c780f0aad3a36eae6261cd54316b050f68e1fcb99853935738f30%40%3Cdev.logging.apache.org%3E
SO example: https://stackoverflow.com/questions/33606482/are-there-facilities-in-stdchrono-to-assist-with-injecting-system-clock-for-un
fake clock example: https://github.com/korfuri/fake_clock