Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include/internal/catch_session.cpp
diff options
context:
space:
mode:
authorThomas Gamper2022-08-21 17:44:03 +0200
committerMartin Hořeňovský2022-08-21 19:51:36 +0200
commit02123776f208502aecd374a324472720e5e3352f (patch)
tree7282ddcbbbba83d2c4bb158c7a1204f7ce060654 /include/internal/catch_session.cpp
parent14bc25be00881a0f85229d62dfeb32ce1e9cbe03 (diff)
downloadcatch3-02123776f208502aecd374a324472720e5e3352f.tar.gz
fixes catchorg/Catch2#2401
Diffstat (limited to 'include/internal/catch_session.cpp')
-rw-r--r--include/internal/catch_session.cpp2
1 files changed, 1 insertions, 1 deletions
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();