CTest: Script mode scheduling seems broken, non-deterministic output in extra verbose mode
Came across this here: https://github.com/friendlyanon/cmake-init/issues/44#issuecomment-1024305277
The above link contains the commit with the full code.
The relevant part of the code:
ctest_configure(RETURN_VALUE ret OPTIONS "${OPTIONS}")
message("::endgroup::")
message("::group::Build")
Produces the following output on MacOS, Linux and Windows respectively (notice the placement of group delimiters):
-- Build files have been written to: /Users/runner/work/check-type-align/check-type-align/build
Command exited with the value: 0
::endgroup::
SetCTestConfiguration:BuildDirectory:/Users/runner/work/check-type-align/check-type-align/build
::group::Build
-- Build files have been written to: /home/runner/work/check-type-align/check-type-align/build
::endgroup::
Command exited with the value: 0
::group::Build
SetCTestConfiguration:BuildDirectory:/home/runner/work/check-type-align/check-type-align/build
-- Build files have been written to: D:/a/check-type-align/check-type-align/build
Command exited with the value: 0
::endgroup::
::group::Build
SetCTestConfiguration:BuildDirectory:D:/a/check-type-align/check-type-align/build