Clamp exit code internally, so it doesn’t have to be done in every main() implies

This commit is contained in:
Phil Nash
2017-06-27 11:37:42 +01:00
parent fae0fa4ec1
commit 4c1880b35f
3 changed files with 15 additions and 15 deletions

View File

@@ -18,8 +18,7 @@ extern "C" int wmain (int argc, wchar_t * argv[], wchar_t * []) {
int main (int argc, char * argv[]) {
#endif
int result = Catch::Session().run( argc, argv );
return ( result < 0xff ? result : 0xff );
return Catch::Session().run( argc, argv );
}
#else // __OBJC__
@@ -37,7 +36,7 @@ int main (int argc, char * const argv[]) {
[pool drain];
#endif
return ( result < 0xff ? result : 0xff );
return result;
}
#endif // __OBJC__