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

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

Issue 2591473004: Fuchsia: implement Process::Wait() for Process.runSync() (Closed)
Patch Set: Cleanup 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
« runtime/bin/process_fuchsia.cc ('K') | « runtime/bin/process_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 ce9cd7da7fe07ea3b22ca17885b71472a80364d1..fd8363a90a101dad3ac9e341d88eea44605b8316 100644
--- a/runtime/tests/vm/dart/hello_fuchsia_test.dart
+++ b/runtime/tests/vm/dart/hello_fuchsia_test.dart
@@ -388,6 +388,15 @@ Future testProcess() async {
print("$exe --version exited with code $code");
}
+void testProcessRunSync() {
+ String exe = Platform.resolvedExecutable;
+ print("Running $exe --version");
+ var result = Process.runSync(exe, ["--version"]);
+ print("$exe --version exited with code ${result.exitCode}");
+ print("$exe --version had stdout = '${result.stdout}'");
+ print("$exe --version had stderr = '${result.stderr}'");
+}
+
Future testLs(String path) async {
Stream<FileSystemEntity> stream = (new Directory(path)).list();
await for (FileSystemEntity fse in stream) {
@@ -446,5 +455,9 @@ main() async {
await testProcess();
print("testProcess done");
+ print("testProcessRunSync");
+ testProcessRunSync();
+ print("testProcessRunSync done");
+
print("Goodbyte, Fuchsia!");
}
« runtime/bin/process_fuchsia.cc ('K') | « runtime/bin/process_fuchsia.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698