Merge pull request #5566 from mpimenov/regexp

[testing] Relaxed the filters in regular expressions.
This commit is contained in:
Yuri Gorshenin 2017-03-10 18:10:03 +03:00 committed by GitHub
commit 89c2d7d4d8

View file

@ -201,12 +201,12 @@ int main(int argc, char * argv[])
{
auto const & testName = testNames[iTest];
if (g_testingOptions.m_filterRegExp &&
!regex_match(testName.begin(), testName.end(), filterRegExp))
!regex_search(testName.begin(), testName.end(), filterRegExp))
{
continue;
}
if (g_testingOptions.m_suppressRegExp &&
regex_match(testName.begin(), testName.end(), suppressRegExp))
regex_search(testName.begin(), testName.end(), suppressRegExp))
{
continue;
}