[CMake] ctest // fixtures and --repeat-until-fail <n>

Sergei Nikulov sergey.nikulov at gmail.com
Tue Apr 16 08:07:14 EDT 2019


Hello All,

Has anybody knows how FIXTURES_SETUP/FIXTURES_CLEANUP should work with
--repeat-until-fail <n> option?

My expectation, if I requesting a test run for example 10 times, the
sequence should be as follows:

fixture_setup, then test, then fixture_cleanup repeats 10 times

But in practice, I've got following sequence

1. fixture_setup runs 10 times
2. test runs 10 times
3. fixture_cleanup runs 10 times

Is it expected behavior?
I'm using ctest version 3.14.2

Thank you in advance.

-- 
Best Regards,
Sergei Nikulov


More information about the CMake mailing list