Returns the current application's name, removing directory path if that is present.
| 1859 | // Returns the current application's name, removing directory path if that |
| 1860 | // is present. |
| 1861 | FilePath GetCurrentExecutableName() { |
| 1862 | FilePath result; |
| 1863 | |
| 1864 | #if GTEST_OS_WINDOWS |
| 1865 | result.Set(FilePath(g_executable_path).RemoveExtension("exe")); |
| 1866 | #else |
| 1867 | result.Set(FilePath(g_executable_path)); |
| 1868 | #endif // GTEST_OS_WINDOWS |
| 1869 | |
| 1870 | return result.RemoveDirectoryName(); |
| 1871 | } |
| 1872 | |
| 1873 | // Functions for processing the gtest_output flag. |
| 1874 |
no test coverage detected