Suppress "no test cases matched" message if there was no test spec string

This commit is contained in:
Phil Nash 2013-02-19 18:41:57 +00:00
parent 429699e797
commit ca79d19325

View File

@ -69,7 +69,7 @@ namespace Catch {
} }
} }
} }
if( testsRunForGroup == 0 ) if( testsRunForGroup == 0 && !filterGroup.getName().empty() )
std::cerr << "\n[No test cases matched with: " << filterGroup.getName() << "]" << std::endl; std::cerr << "\n[No test cases matched with: " << filterGroup.getName() << "]" << std::endl;
return totals; return totals;