Fix GetNSExecutablePath for running tests with relative path
When running tests (zip_unittests.cc for instance) using base::DIR_SOURCE_ROOT with ./<test_executable_name> they will get incorrect directory names because ./ will be included in the return value of GetNSExecutablePath() and it will be consider as one level of parent directory by FilePath::DirName(). To avoid this problem we should alway convert the value returned by GetNSExecutablePath() into absolute path first. BUG=258846 TEST=see bug Review URL: https://chromiumcodereview.appspot.com/18309008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215882 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment