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

Side by Side Diff: tests/standalone/io/regress_7191_test.dart

Issue 11492007: Add test case for issue 7191. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/standalone/io/regress_7191_script.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
ahe 2012/12/10 13:04:10 Add a comment to explain the purpose and how this
Mads Ager (google) 2012/12/10 13:22:48 Yes, sorry, I did in patch set 2. My comments neve
5 import 'dart:io';
6 import 'dart:isolate';
ahe 2012/12/10 13:04:10 Unnecessary import?
Mads Ager (google) 2012/12/10 13:22:48 Yes. Removed in patch set 2 which I did not commit
7
8 main() {
9 var options = new Options();
10 var executable = options.executable;
11 var scriptDir = new Path.fromNative(options.script).directoryPath;
12 var script = scriptDir.append('regress_7191_script.dart').toNativePath();
13 Process.start(executable, [script]).then((process) {
14 process.stdin.write([0]);
15 process.stdout.onData = process.stdout.read;
ahe 2012/12/10 13:04:10 This is not immediately obvious to me. What does
Mads Ager (google) 2012/12/10 13:22:48 It drains stdout and stderr of the sub-process. It
16 process.stderr.onData = process.stderr.read;
17 process.stdout.onClosed = () {
18 process.stdin.write([0]);
19 };
20 });
21 }
OLDNEW
« no previous file with comments | « tests/standalone/io/regress_7191_script.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698