diff options
Diffstat (limited to '3rdparty/catch/include/internal/catch_default_main.hpp')
-rw-r--r-- | 3rdparty/catch/include/internal/catch_default_main.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/3rdparty/catch/include/internal/catch_default_main.hpp b/3rdparty/catch/include/internal/catch_default_main.hpp index 54202fb397a..12ca902477c 100644 --- a/3rdparty/catch/include/internal/catch_default_main.hpp +++ b/3rdparty/catch/include/internal/catch_default_main.hpp @@ -12,7 +12,8 @@ // Standard C/C++ main entry point int main (int argc, char * argv[]) { - return Catch::Session().run( argc, argv ); + int result = Catch::Session().run( argc, argv ); + return ( result < 0xff ? result : 0xff ); } #else // __OBJC__ @@ -30,7 +31,7 @@ int main (int argc, char * const argv[]) { [pool drain]; #endif - return result; + return ( result < 0xff ? result : 0xff ); } #endif // __OBJC__ |