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

Issue 1145053002: Make Platform.executable return a fully qualified path the the executable (Closed)

Created:
5 years, 7 months ago by Søren Gjesse
Modified:
5 years, 7 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Make Platform.executable return the fully qualified path of the executable BUG=http://dartbug.com/16994 R=kustermann@google.com, lrn@google.com Committed: https://github.com/dart-lang/sdk/commit/e03ab1743717c39099a9161999e231699098a811

Patch Set 1 #

Patch Set 2 : Fix Mac OS and Windows code #

Patch Set 3 : Updated test #

Patch Set 4 : Fix comment #

Total comments: 11

Patch Set 5 : Addressed review comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -4 lines) Patch
M runtime/bin/platform.h View 2 chunks +15 lines, -1 line 0 comments Download
M runtime/bin/platform.cc View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/platform_android.cc View 1 chunk +5 lines, -0 lines 2 comments Download
M runtime/bin/platform_linux.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M runtime/bin/platform_macos.cc View 1 2 3 4 2 chunks +19 lines, -0 lines 0 comments Download
M runtime/bin/platform_win.cc View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
M sdk/lib/io/platform.dart View 1 2 4 chunks +5 lines, -3 lines 0 comments Download
M tests/standalone/io/platform_test.dart View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (1 generated)
Søren Gjesse
5 years, 7 months ago (2015-05-20 09:47:31 UTC) #1
kustermann
lgtm https://codereview.chromium.org/1145053002/diff/40002/runtime/bin/platform_win.cc File runtime/bin/platform_win.cc (right): https://codereview.chromium.org/1145053002/diff/40002/runtime/bin/platform_win.cc#newcode88 runtime/bin/platform_win.cc:88: const int kTmpBufferSize = 32768; Isn't there a ...
5 years, 7 months ago (2015-05-20 10:19:56 UTC) #2
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/1145053002/diff/40002/runtime/bin/platform.h File runtime/bin/platform.h (right): https://codereview.chromium.org/1145053002/diff/40002/runtime/bin/platform.h#newcode46 runtime/bin/platform.h:46: executable_name_ = executable_name; Should this set ..._resolved_ to ...
5 years, 7 months ago (2015-05-20 10:48:43 UTC) #3
Søren Gjesse
https://codereview.chromium.org/1145053002/diff/40002/runtime/bin/platform.h File runtime/bin/platform.h (right): https://codereview.chromium.org/1145053002/diff/40002/runtime/bin/platform.h#newcode46 runtime/bin/platform.h:46: executable_name_ = executable_name; On 2015/05/20 10:48:43, Lasse Reichstein Nielsen ...
5 years, 7 months ago (2015-05-20 11:14:25 UTC) #4
Søren Gjesse
Committed patchset #5 (id:70001) manually as e03ab1743717c39099a9161999e231699098a811 (presubmit successful).
5 years, 7 months ago (2015-05-20 11:14:56 UTC) #5
Bill Hesse
https://codereview.chromium.org/1145053002/diff/70001/runtime/bin/platform_android.cc File runtime/bin/platform_android.cc (right): https://codereview.chromium.org/1145053002/diff/70001/runtime/bin/platform_android.cc#newcode9 runtime/bin/platform_android.cc:9: I think you need to include bin/file.h here. Android ...
5 years, 7 months ago (2015-05-20 13:44:06 UTC) #7
Søren Gjesse
https://codereview.chromium.org/1145053002/diff/70001/runtime/bin/platform_android.cc File runtime/bin/platform_android.cc (right): https://codereview.chromium.org/1145053002/diff/70001/runtime/bin/platform_android.cc#newcode9 runtime/bin/platform_android.cc:9: On 2015/05/20 13:44:06, Bill Hesse wrote: > I think ...
5 years, 7 months ago (2015-05-20 13:56:33 UTC) #8
kevmoo
5 years, 7 months ago (2015-05-20 19:45:54 UTC) #9
Message was sent while issue was closed.
On 2015/05/20 13:56:33, Søren Gjesse wrote:
>
https://codereview.chromium.org/1145053002/diff/70001/runtime/bin/platform_an...
> File runtime/bin/platform_android.cc (right):
> 
>
https://codereview.chromium.org/1145053002/diff/70001/runtime/bin/platform_an...
> runtime/bin/platform_android.cc:9: 
> On 2015/05/20 13:44:06, Bill Hesse wrote:
> > I think you need to include bin/file.h here.  Android compilation is
failing.
> 
> Thanks Bill. Fixed in a separate CL.

DBC: could we have tests that validate the expected behavior?

dart in Path
dart in a symlinked directory
dart exe is sym-linked

etc...

Powered by Google App Engine
This is Rietveld 408576698