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

Unified Diff: tests/standalone/regress_28854_1_test.dart

Issue 2750193002: Fix for issue 28854. (Closed)
Patch Set: Adjust status file for dartium as the test will fail because Isolate.spawn is used. Created 3 years, 9 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
« no previous file with comments | « runtime/vm/snapshot.cc ('k') | tests/standalone/regress_28854_2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/regress_28854_1_test.dart
diff --git a/tests/standalone/regress_28854_1_test.dart b/tests/standalone/regress_28854_1_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..717545849d35ef2f0b0f31fbafeedae52f9b1ea5
--- /dev/null
+++ b/tests/standalone/regress_28854_1_test.dart
@@ -0,0 +1,43 @@
+// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+//
+library regress;
+
+import 'dart:isolate';
+
+abstract class N {
+
+}
+
+class J extends N {
+ final String s;
+ J(this.s);
+}
+
+class K extends N {
+ final int i;
+ K(this.i);
+}
+
+void isolate(SendPort port) {
+ port.send(N);
+ port.send(new J("8" * 4));
+ for (int i=0; i<80000; i++) {
+ port.send(new K(i));
+ }
+ port.send('done');
+}
+
+main() async {
+ var recv = new RawReceivePort();
+ recv.handler = (k) {
+ if (k is J) print(k.s.length);
+ if (k is String) {
+ print(k);
+ recv.close();
+ }
+ };
+ var iso = await Isolate.spawn(isolate, recv.sendPort);
+}
+
« no previous file with comments | « runtime/vm/snapshot.cc ('k') | tests/standalone/regress_28854_2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698