Parses the command line for Google Test flags, without initializing other parts of Google Test.
| 6605 | // Parses the command line for Google Test flags, without initializing |
| 6606 | // other parts of Google Test. |
| 6607 | void ParseGoogleTestFlagsOnly(int* argc, char** argv) { |
| 6608 | ParseGoogleTestFlagsOnlyImpl(argc, argv); |
| 6609 | |
| 6610 | // Fix the value of *_NSGetArgc() on macOS, but if and only if |
| 6611 | // *_NSGetArgv() == argv |
| 6612 | // Only applicable to char** version of argv |
| 6613 | #if GTEST_OS_MAC |
| 6614 | #ifndef GTEST_OS_IOS |
| 6615 | if (*_NSGetArgv() == argv) { |
| 6616 | *_NSGetArgc() = *argc; |
| 6617 | } |
| 6618 | #endif |
| 6619 | #endif |
| 6620 | } |
| 6621 | void ParseGoogleTestFlagsOnly(int* argc, wchar_t** argv) { |
| 6622 | ParseGoogleTestFlagsOnlyImpl(argc, argv); |
| 6623 | } |
no test coverage detected