diff options
| author | Thomas Gamper | 2022-08-21 17:44:03 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2022-08-21 19:51:36 +0200 |
| commit | 02123776f208502aecd374a324472720e5e3352f (patch) | |
| tree | 7282ddcbbbba83d2c4bb158c7a1204f7ce060654 /include/internal/catch_session.cpp | |
| parent | 14bc25be00881a0f85229d62dfeb32ce1e9cbe03 (diff) | |
| download | catch3-02123776f208502aecd374a324472720e5e3352f.tar.gz | |
fixes catchorg/Catch2#2401
Diffstat (limited to 'include/internal/catch_session.cpp')
| -rw-r--r-- | include/internal/catch_session.cpp | 2 |
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(); |