list options return number listed
This commit is contained in:
1 parent
e035e2835d
commit
f438e04b5d
3 files changed
+23
-25
No files matched your search
@@ -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