mirror of
https://github.com/catchorg/Catch2.git
synced 2025-06-03 18:37:56 +00:00
Added clean-up
Clean-up statics at the end of main to avoid added noise when looking for leaks
This commit is contained in:
parent
333e6e6254
commit
dd5b9c2ae5
4 changed files with 58 additions and 8 deletions
|
@ -24,14 +24,14 @@ int main (int argc, char * const argv[])
|
|||
int result = Catch::Main( argc, (char* const*)argv );
|
||||
|
||||
[pool drain];
|
||||
return result;
|
||||
|
||||
#else
|
||||
|
||||
return Catch::Main( argc, argv );
|
||||
int result =Catch::Main( argc, argv );
|
||||
|
||||
#endif
|
||||
Catch::Hub::cleanUp();
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
#endif // TWOBLUECUBES_CATCH_DEFAULT_MAIN_HPP_INCLUDED
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue