[CMake] Issue in CTest when both --label-regex and --label-exclude is used

William Deurwaarder William.Deurwaarder at tomtom.com
Thu Jun 5 06:03:57 EDT 2014


Hi,

When both --label-regex and --label-exclude is used to filter tests in CTest the result is always 'No tests were found!!!'. In my opinion this is caused by a small error in ./Source/CTest/cmCTestTestHandler.cxx line 1530 (CMake 2.8.12) or line 1561 (CMake 3.0.0-rc3) where the statement is:
   if ( !this->IncludeLabelRegExp.empty() )

and I expect that it should be:
   if ( !this->ExcludeLabelRegExp.empty() )

Kind regards,
William
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140605/d0931649/attachment.html>


More information about the CMake mailing list