| 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!");
|
| }
|
|
|