Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

fixes catchorg/Catch2#2401

Commit
02123776f208502aecd374a324472720e5e3352f
Author
Thomas Gamper ·
Committer
Martin Hořeňovský
Parents
14bc25be0088

Files · Download .tar.gz

Changes

 include/internal/catch_session.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/internal/catch_session.cpp b/include/internal/catch_session.cpp
index 6254c584..6247fa7d 100644
--- a/include/internal/catch_session.cpp
+++ b/include/internal/catch_session.cpp
@@ -293,7 +293,7 @@ namespace Catch {
 
             // Handle list request
             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 };
             auto const totals = tests.execute();