Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Issue 18309008: Fix GetNSExecutablePath for running tests with relative path (Closed)

Created:
7 years, 5 months ago by Jiang Jiang
Modified:
6 years, 5 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215882

Patch Set 1 #

Total comments: 2

Patch Set 2 : Update comment #

Patch Set 3 : Rebase #

Patch Set 4 : Fix typeahead for popup menu with attributes #

Patch Set 5 : Fix GMOCK warnings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -0 lines) Patch
M components/password_manager/core/browser/password_manager_unittest.cc View 1 2 3 4 13 chunks +39 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Jiang Jiang
We found it while running zip_unittests while developing Opera, I think Chromium must have the ...
7 years, 5 months ago (2013-07-10 12:16:52 UTC) #1
Nico
lgtm, please add "TEST=see bug" to cl description https://codereview.chromium.org/18309008/diff/1/base/base_paths_mac.mm File base/base_paths_mac.mm (right): https://codereview.chromium.org/18309008/diff/1/base/base_paths_mac.mm#newcode39 base/base_paths_mac.mm:39: *path ...
7 years, 5 months ago (2013-07-10 18:02:31 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jiangj@opera.com/18309008/1
7 years, 5 months ago (2013-07-11 08:15:06 UTC) #3
Jiang Jiang
On 2013/07/11 08:15:06, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
7 years, 5 months ago (2013-07-12 08:37:32 UTC) #4
Nico
On 2013/07/12 08:37:32, Jiang wrote: > On 2013/07/11 08:15:06, I haz the power (commit-bot) wrote: ...
7 years, 5 months ago (2013-07-15 20:54:19 UTC) #5
Jiang Jiang
On 2013/07/15 20:54:19, Nico wrote: > On 2013/07/12 08:37:32, Jiang wrote: > > On 2013/07/11 ...
7 years, 4 months ago (2013-07-30 10:53:41 UTC) #6
brettw
LGTM unless you can think of something better https://codereview.chromium.org/18309008/diff/1/base/base_paths_mac.mm File base/base_paths_mac.mm (right): https://codereview.chromium.org/18309008/diff/1/base/base_paths_mac.mm#newcode39 base/base_paths_mac.mm:39: *path ...
7 years, 4 months ago (2013-08-06 04:52:06 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jiangj@opera.com/18309008/19001
7 years, 4 months ago (2013-08-06 08:42:02 UTC) #8
commit-bot: I haz the power
7 years, 4 months ago (2013-08-06 13:30:28 UTC) #9
Message was sent while issue was closed.
Change committed as 215882

Powered by Google App Engine
This is Rietveld 408576698