mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-18 10:55:39 +02:00
list options return number listed
This commit is contained in:
@@ -194,8 +194,8 @@ namespace Catch {
|
||||
Runner runner( config );
|
||||
|
||||
// Handle list request
|
||||
if( list( config ) )
|
||||
return 0;
|
||||
if( Option<std::size_t> listed = list( config ) )
|
||||
return static_cast<int>( *listed );
|
||||
|
||||
return static_cast<int>( runner.runTests().assertions.failed );
|
||||
}
|
||||
|
Reference in New Issue
Block a user