Returns the current application's name, removing directory path if that is present.
| 375 | // Returns the current application's name, removing directory path if that |
| 376 | // is present. |
| 377 | FilePath GetCurrentExecutableName() { |
| 378 | FilePath result; |
| 379 | |
| 380 | #if GTEST_OS_WINDOWS |
| 381 | result.Set(FilePath(g_executable_path).RemoveExtension("exe")); |
| 382 | #else |
| 383 | result.Set(FilePath(g_executable_path)); |
| 384 | #endif // GTEST_OS_WINDOWS |
| 385 | |
| 386 | return result.RemoveDirectoryName(); |
| 387 | } |
| 388 | |
| 389 | // Functions for processing the gtest_output flag. |
| 390 |
no test coverage detected