Moved all Catch::Main()s into new Session class
- renamed them run() - moved cleanUp call into destructor
This commit is contained in:
parent
c57ebc84b2
commit
c1196b6245
2 changed files with 71 additions and 62 deletions
|
@ -11,8 +11,8 @@
|
|||
#ifndef __OBJC__
|
||||
|
||||
// Standard C/C++ main entry point
|
||||
int main (int argc, char * const argv[]) {
|
||||
return Catch::Main( argc, argv );
|
||||
int main (int argc, char * const argv[]) {
|
||||
return Catch::Session().run( argc, argv );
|
||||
}
|
||||
|
||||
#else // __OBJC__
|
||||
|
@ -24,7 +24,7 @@ int main (int argc, char * const argv[]) {
|
|||
#endif
|
||||
|
||||
Catch::registerTestMethods();
|
||||
int result = Catch::Main( argc, (char* const*)argv );
|
||||
int result = Catch::Session().run( argc, (char* const*)argv );
|
||||
|
||||
#if !CATCH_ARC_ENABLED
|
||||
[pool drain];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue