View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013949CMakeCMakepublic2013-02-25 01:462016-06-10 14:31
ReporterDave Abrahams 
Assigned ToKitware Robot 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformMacOSOS XOS Version10.8
Product VersionCMake 2.8.10.2 
Target VersionFixed in Version 
Summary0013949: FAIL_REGULAR_EXPRESSION doesn't match beginning-of-line properly
DescriptionI 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: "
  )
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0032371)
Brad King (manager)
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 (administrator)
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.

 Issue History
Date Modified Username Field Change
2013-02-25 01:46 Dave Abrahams New Issue
2013-02-25 08:58 Brad King Note Added: 0032371
2016-06-10 14:28 Kitware Robot Note Added: 0042236
2016-06-10 14:28 Kitware Robot Status new => resolved
2016-06-10 14:28 Kitware Robot Resolution open => moved
2016-06-10 14:28 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team