list options return number listed

This commit is contained in:
Phil Nash committed 2013-06-06 22:54:42 +01:00
1 parent e035e2835d
commit f438e04b5d
3 files changed
+23 -25

No files matched your search

+2 -2
View File
@@ -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 );
}