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

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

Issue 1177153005: Enables clean VM shutdown. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Remove debug print Created 5 years, 5 months 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
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, []);
}

Powered by Google App Engine
This is Rietveld 408576698