This commit is contained in:
Thomas Gamper 2022-08-21 17:44:03 +02:00 committed by Martin Hořeňovský
parent 14bc25be00
commit 02123776f2

View File

@ -293,7 +293,7 @@ namespace Catch {
// Handle list request // Handle list request
if( Option<std::size_t> listed = list( m_config ) ) if( Option<std::size_t> listed = list( m_config ) )
return static_cast<int>( *listed ); return (std::min) (MaxExitCode, static_cast<int>(*listed));
TestGroup tests { m_config }; TestGroup tests { m_config };
auto const totals = tests.execute(); auto const totals = tests.execute();