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

Issue 10380026: Add executable to Options interface to get the name of the executable used to execute the script. (Closed)

Created:
8 years, 7 months ago by Mads Ager (google)
Modified:
8 years, 7 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add executable to Options interface to get the name of the executable used to execute the script. This is useful when you want to spawn separate dart processes. We do this from tests and we keep getting bitten by a broken search for the executable. Let's make it available instead. R=sgjesse@google.com,iposva@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=7382

Patch Set 1 #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -55 lines) Patch
M corelib/src/implementation/options.dart View 3 chunks +8 lines, -1 line 4 comments Download
M corelib/src/options.dart View 2 chunks +7 lines, -1 line 4 comments Download
M runtime/bin/main.cc View 7 chunks +27 lines, -5 lines 2 comments Download
M tests/standalone/io/dart_std_io_pipe_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M tests/standalone/io/options_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/standalone/io/process_broken_pipe_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/process_check_arguments_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/process_environment_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/process_run_output_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M tests/standalone/io/process_stderr_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/process_stdout_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/process_test_util.dart View 2 chunks +5 lines, -39 lines 0 comments Download
M tests/standalone/io/test_runner_test.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Mads Ager (google)
8 years, 7 months ago (2012-05-07 12:51:53 UTC) #1
Søren Gjesse
lgtm I like it!
8 years, 7 months ago (2012-05-07 14:19:56 UTC) #2
Ivan Posva
LGTM with comments. -Ivan https://chromiumcodereview.appspot.com/10380026/diff/1/corelib/src/implementation/options.dart File corelib/src/implementation/options.dart (right): https://chromiumcodereview.appspot.com/10380026/diff/1/corelib/src/implementation/options.dart#newcode28 corelib/src/implementation/options.dart:28: static String _nativeExecutable = null; ...
8 years, 7 months ago (2012-05-07 17:40:36 UTC) #3
Mads Ager (google)
https://chromiumcodereview.appspot.com/10380026/diff/1/corelib/src/implementation/options.dart File corelib/src/implementation/options.dart (right): https://chromiumcodereview.appspot.com/10380026/diff/1/corelib/src/implementation/options.dart#newcode28 corelib/src/implementation/options.dart:28: static String _nativeExecutable = null; On 2012/05/07 17:40:36, Ivan ...
8 years, 7 months ago (2012-05-08 06:39:04 UTC) #4
Anders Johnsen
http://codereview.chromium.org/10380026/diff/1/corelib/src/options.dart File corelib/src/options.dart (right): http://codereview.chromium.org/10380026/diff/1/corelib/src/options.dart#newcode27 corelib/src/options.dart:27: * isolate. Any change we could change this to ...
8 years, 7 months ago (2012-05-09 07:16:43 UTC) #5
Mads Ager (google)
8 years, 7 months ago (2012-05-09 07:38:09 UTC) #6
http://codereview.chromium.org/10380026/diff/1/corelib/src/options.dart
File corelib/src/options.dart (right):

http://codereview.chromium.org/10380026/diff/1/corelib/src/options.dart#newco...
corelib/src/options.dart:27: * isolate.
On 2012/05/09 07:16:43, ajohnsen wrote:
> Any change we could change this to always be absolute? Or maybe, return a Path
> object once available?

This is in corelib so we shouldn't have dependencies on other libraries. On the
VM (which is the only embedder who has this) you can wrap this in a File object
and you are rolling. :-)

Powered by Google App Engine
This is Rietveld 408576698