[CMake] Make Timeout not be a failure
Donald MacQueen [|]
dmacq at instantiations.com
Thu Jun 20 15:45:55 EDT 2019
I have a test where I start a program that I know will create some
output that I can test.
But I have no way to kill this program, so I let Ctest kill it with a
TIMEOUT.
The next step greps the output to see if it worked.
So it would be nice if PASS_REGULAR_EXPRESSION could override TIMEOUT
and not mark the test as failed.
For example:
set_tests_properties(${importMaps} PROPERTIES
PASS_REGULAR_EXPRESSION "some string I know I will find")
# this
^^^^^^^^^^^^^^^^^^^^^^ makes the test pass even if it times out
set_tests_properties(${importMaps} PROPERTIES TIMEOUT 60)
--
Donald [|]
A bad day in [] is better than a good day in {}.
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
More information about the CMake
mailing list