Returns the current application's name, removing directory path if that is present.
| 1671 | // Returns the current application's name, removing directory path if that |
| 1672 | // is present. |
| 1673 | FilePath GetCurrentExecutableName() { |
| 1674 | FilePath result; |
| 1675 | |
| 1676 | #if GTEST_OS_WINDOWS |
| 1677 | result.Set(FilePath(g_executable_path).RemoveExtension("exe")); |
| 1678 | #else |
| 1679 | result.Set(FilePath(g_executable_path)); |
| 1680 | #endif // GTEST_OS_WINDOWS |
| 1681 | |
| 1682 | return result.RemoveDirectoryName(); |
| 1683 | } |
| 1684 | |
| 1685 | // Functions for processing the gtest_output flag. |
| 1686 |
no test coverage detected