MantisBT - CMake
View Issue Details
0013949CMakeCMakepublic2013-02-25 01:462016-06-10 14:31
Dave Abrahams 
Kitware Robot 
normalmajoralways
closedmoved 
MacOS X10.8
CMake 2.8.10.2 
 
0013949: FAIL_REGULAR_EXPRESSION doesn't match beginning-of-line properly
I ended up doing:

set_tests_properties(conversion PROPERTIES
  DEPENDS prepare
  FAIL_REGULAR_EXPRESSION "(^|
)[+][+] WARNING: "
  )

because this wasn't working:

set_tests_properties(conversion PROPERTIES
  DEPENDS prepare
  FAIL_REGULAR_EXPRESSION "^[+][+] WARNING: "
  )
No tags attached.
Issue History
2013-02-25 01:46Dave AbrahamsNew Issue
2013-02-25 08:58Brad KingNote Added: 0032371
2016-06-10 14:28Kitware RobotNote Added: 0042236
2016-06-10 14:28Kitware RobotStatusnew => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0032371)
Brad King   
2013-02-25 08:58   
CMake regex matching always treats '^' and '$' w.r.t. the entire text, not lines (like python without the MULTILINE option). The documentation here:

 http://www.cmake.org/cmake/help/v2.8.10/cmake.html#command:string [^]

is wrong in that regard.

However, there may be places that CMake or CTest splits text into lines and applies the regex separately on each line. I do not think FAIL_REGULAR_EXPRESSION is one of them.
(0042236)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.