Returns the current application's name, removing directory path if that is present.
| 1907 | // Returns the current application's name, removing directory path if that |
| 1908 | // is present. |
| 1909 | FilePath GetCurrentExecutableName() { |
| 1910 | FilePath result; |
| 1911 | |
| 1912 | #if GTEST_OS_WINDOWS || GTEST_OS_OS2 |
| 1913 | result.Set(FilePath(GetArgvs()[0]).RemoveExtension("exe")); |
| 1914 | #else |
| 1915 | result.Set(FilePath(GetArgvs()[0])); |
| 1916 | #endif // GTEST_OS_WINDOWS |
| 1917 | |
| 1918 | return result.RemoveDirectoryName(); |
| 1919 | } |
| 1920 | |
| 1921 | // Functions for processing the gtest_output flag. |
| 1922 |
no test coverage detected