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

Unified Diff: runtime/tests/vm/dart/hello_fuchsia_test.dart

Issue 2563463002: Fuchsia: dart:io Processes (Closed)
Patch Set: Format Created 4 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 | « runtime/bin/socket_fuchsia.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/tests/vm/dart/hello_fuchsia_test.dart
diff --git a/runtime/tests/vm/dart/hello_fuchsia_test.dart b/runtime/tests/vm/dart/hello_fuchsia_test.dart
index 35f2cef30a1e3dcc53b7b395dc57ecdf0c3f284f..1c36a0cf2870a9d582f21592190b68ced079df7e 100644
--- a/runtime/tests/vm/dart/hello_fuchsia_test.dart
+++ b/runtime/tests/vm/dart/hello_fuchsia_test.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
import "dart:async";
+import "dart:convert";
import "dart:io";
testAddressParse() async {
@@ -378,6 +379,13 @@ Future testGoogleHttps(SecurityContext context, String outcome) async {
}
}
+Future testProcess() async {
+ Process p = await Process.start(Platform.executable, ["--version"]);
+ p.stderr.transform(UTF8.decoder).listen(print);
+ int code = await p.exitCode;
+ print("dart --version exited with code $code");
+}
+
main() async {
print("Hello, Fuchsia!");
@@ -409,5 +417,9 @@ main() async {
await testGoogleHttps(null, 'pass');
print("testGoogleHttps done");
+ print("testProcess");
+ await testProcess();
+ print("testProcess done");
+
print("Goodbyte, Fuchsia!");
}
« no previous file with comments | « runtime/bin/socket_fuchsia.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698