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

Unified Diff: tests/standalone/io/process_exit_negative_test.dart

Issue 11578007: Turn on dartc testing of tests/standalone. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/standalone/io/process_environment_test.dart ('k') | tests/standalone/io/process_exit_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/process_exit_negative_test.dart
diff --git a/tests/standalone/io/process_exit_negative_test.dart b/tests/standalone/io/process_exit_negative_test.dart
index 1477a055def25a96277ec7156cbc96d41f979399..9eede27319538780a10445f298e483cc5dca90af 100644
--- a/tests/standalone/io/process_exit_negative_test.dart
+++ b/tests/standalone/io/process_exit_negative_test.dart
@@ -3,18 +3,20 @@
// BSD-style license that can be found in the LICENSE file.
//
// Process test program to test that compilation errors in the process
-// exit handler is reported correctly.
+// exit handler are reported correctly.
import "dart:io";
-part "process_test_util.dart";
+import "process_test_util.dart";
void main() {
- Process p = Process.start(getProcessTestFileName(),
+ Future<Process> fp = Process.start(getProcessTestFileName(),
Mads Ager (google) 2012/12/13 19:16:52 Auch! Thanks Bill. :)
const ["0", "0", "0", "0"]);
- p.onExit = (int s) {
- print(a.toString()); // Should cause a compilation error here.
- };
- // Drain stdout and stderr.
- p.stdout.onData = p.stdout.read;
- p.stderr.onData = p.stderr.read;
+ fp.then((p) {
+ p.onExit = (int s) {
+ print(a.toString()); // Should cause a compilation error here.
+ };
+ // Drain stdout and stderr.
+ p.stdout.onData = p.stdout.read;
+ p.stderr.onData = p.stderr.read;
+ });
}
« no previous file with comments | « tests/standalone/io/process_environment_test.dart ('k') | tests/standalone/io/process_exit_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698