| Index: tests/standalone/io/process_detached_script.dart
|
| diff --git a/tests/standalone/io/process_detached_script.dart b/tests/standalone/io/process_detached_script.dart
|
| index 122831b433b2d6ef75f6b028643abc49ca0db6ef..6e90759881c563bfbabc8af6be50fcc9475f646b 100644
|
| --- a/tests/standalone/io/process_detached_script.dart
|
| +++ b/tests/standalone/io/process_detached_script.dart
|
| @@ -4,8 +4,19 @@
|
| //
|
| // Simple script hanging for testing a detached process.
|
|
|
| +import 'dart:io';
|
| import 'dart:isolate';
|
|
|
| -main() {
|
| +void main(List<String> args) {
|
| new ReceivePort().listen(print);
|
| +
|
| + // If an argument 'echo' is passed echo stdin to stdout and stderr.
|
| + if (args.length == 1 && args[0] == 'echo') {
|
| + stdin.fold([], (p, e) => p..addAll(e)).then((message) {
|
| + stdout.add(message);
|
| + stderr.add(message);
|
| + stdout.close();
|
| + stderr.close();
|
| + });
|
| + }
|
| }
|
|
|