mirror of https://github.com/catchorg/Catch2.git
Fixed a dangling else issue
This commit is contained in:
parent
88f7513007
commit
52e415805f
|
@ -22,12 +22,12 @@ namespace Catch {
|
||||||
inline std::size_t listTests( Config const& config, const bool includeSources ) {
|
inline std::size_t listTests( Config const& config, const bool includeSources ) {
|
||||||
|
|
||||||
TestSpec testSpec = config.testSpec();
|
TestSpec testSpec = config.testSpec();
|
||||||
if( config.testSpec().hasFilters() )
|
if( config.testSpec().hasFilters() ) {
|
||||||
if( !includeSources )
|
if( !includeSources )
|
||||||
Catch::cout() << "Matching test cases:\n";
|
Catch::cout() << "Matching test cases:\n";
|
||||||
else {
|
} else {
|
||||||
if( !includeSources )
|
if( !includeSources )
|
||||||
Catch::cout() << "All available test cases:\n";
|
Catch::cout() << "All available test cases:\n";
|
||||||
testSpec = TestSpecParser( ITagAliasRegistry::get() ).parse( "*" ).testSpec();
|
testSpec = TestSpecParser( ITagAliasRegistry::get() ).parse( "*" ).testSpec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue