Chromium Code Reviews| Index: runtime/tests/vm/dart/spawn_infinite_loop_test.dart |
| diff --git a/tests/isolate/browser/issue_12474_child.dart b/runtime/tests/vm/dart/spawn_infinite_loop_test.dart |
| similarity index 70% |
| copy from tests/isolate/browser/issue_12474_child.dart |
| copy to runtime/tests/vm/dart/spawn_infinite_loop_test.dart |
| index 510fdbb23bd2947d2caffdccaac07aba2e4fb393..91df32a534aced2a2a196b5b4b184c5d3941ac89 100644 |
| --- a/tests/isolate/browser/issue_12474_child.dart |
| +++ b/runtime/tests/vm/dart/spawn_infinite_loop_test.dart |
| @@ -3,8 +3,12 @@ |
| // BSD-style license that can be found in the LICENSE file. |
| import 'dart:isolate'; |
| -import 'package:issue_12474_lib.dart'; |
| -void main([args, port]) { |
| - testPackageRoot(args); |
| +void loop(msg) { |
| + while (true) {} |
| + throw "Unreachable"; |
| +} |
| + |
|
turnidge
2015/08/04 21:39:02
Comment to explain why we have this test.
zra
2015/08/05 06:23:06
Done.
|
| +void main() { |
| + Isolate.spawn(loop, []); |
| } |