Parses the command line for Google Test flags, without initializing other parts of Google Test.
| 7474 | // Parses the command line for Google Test flags, without initializing |
| 7475 | // other parts of Google Test. |
| 7476 | void ParseGoogleTestFlagsOnly(int* argc, char** argv) { |
| 7477 | ParseGoogleTestFlagsOnlyImpl(argc, argv); |
| 7478 | |
| 7479 | // Fix the value of *_NSGetArgc() on macOS, but iff |
| 7480 | // *_NSGetArgv() == argv |
| 7481 | // Only applicable to char** version of argv |
| 7482 | #if GTEST_OS_MAC |
| 7483 | #ifndef GTEST_OS_IOS |
| 7484 | if (*_NSGetArgv() == argv) { |
| 7485 | *_NSGetArgc() = *argc; |
| 7486 | } |
| 7487 | #endif |
| 7488 | #endif |
| 7489 | } |
| 7490 | void ParseGoogleTestFlagsOnly(int* argc, wchar_t** argv) { |
| 7491 | ParseGoogleTestFlagsOnlyImpl(argc, argv); |
| 7492 | } |
no test coverage detected