mirror of
https://github.com/boostorg/regression.git
synced 2026-01-19 04:42:10 +00:00
Merge pull request #54 from Kojoley/fix-too-broad-warning-matching
Fixed too broad warning matching
This commit is contained in:
@@ -249,7 +249,7 @@ void process_test_log(test_structure_t::test_log_t& test_log,
|
||||
if ( ( it = test_log.targets.find("compile") ) != end ) {
|
||||
BOOST_ASSERT(it->second.contents);
|
||||
boost::string_ref val(it->second.contents->value(), it->second.contents->value_size());
|
||||
if ( find_regex(val, "warning") ) {
|
||||
if ( find_regex(val, "\\bwarning\\b") ) {
|
||||
test_log.pass_warning = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user