Returns the current application's name, removing directory path if that is present.
| 1879 | // Returns the current application's name, removing directory path if that |
| 1880 | // is present. |
| 1881 | FilePath GetCurrentExecutableName() { |
| 1882 | FilePath result; |
| 1883 | |
| 1884 | #if GTEST_OS_WINDOWS |
| 1885 | result.Set(FilePath(g_executable_path).RemoveExtension("exe")); |
| 1886 | #else |
| 1887 | result.Set(FilePath(g_executable_path)); |
| 1888 | #endif // GTEST_OS_WINDOWS |
| 1889 | |
| 1890 | return result.RemoveDirectoryName(); |
| 1891 | } |
| 1892 | |
| 1893 | // Functions for processing the gtest_output flag. |
| 1894 |
no test coverage detected