On recent gcc-12 snapshot build fails as:
[ 52%] Building CXX object CMakeFiles/TestUnitTest++.dir/tests/TestTestRunner.cpp.o
unittest-cpp/tests/TestTestRunner.cpp:
In constructor '{anonymous}::FixtureBase::FixtureBase()':
unittest-cpp/tests/TestTestRunner.cpp:48:19:
error: member '{anonymous}::FixtureBase::reporter' is used uninitialized [-Werror=uninitialized]
48 | : runner(reporter)
| ^~~~~~~~
cc1plus: all warnings being treated as errors
On https://gcc.gnu.org/PR103375 Andrew suggested to match order of class
members to avoid picking a member reference to yet unconstructed object.
TestFinishIsCalledWithCorrectTime was reliant on SleepMs(20) waking
up before a certain threshold was hit, which is not reliable. This
change uses the actual time of running tests as the top threshold;
not a great improvement but a good quick fix.
Fixes#90