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

Unified Diff: runtime/observatory/tests/service/get_isolate_after_out_of_memory_error_test.dart

Issue 2084643004: Removing OutOfMemoryError test (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/tests/service/get_isolate_after_out_of_memory_error_test.dart
diff --git a/runtime/observatory/tests/service/get_isolate_after_out_of_memory_error_test.dart b/runtime/observatory/tests/service/get_isolate_after_out_of_memory_error_test.dart
deleted file mode 100644
index 2cdf4a0a81dc93542970787f0e80f66c92f42254..0000000000000000000000000000000000000000
--- a/runtime/observatory/tests/service/get_isolate_after_out_of_memory_error_test.dart
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) 2016, 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.
-// VMOptions=--error_on_bad_type --error_on_bad_override
-
-import 'package:observatory/service_io.dart';
-import 'package:unittest/unittest.dart';
-import 'test_helper.dart';
-import 'service_test_common.dart';
-import 'dart:math';
-
-void goOutOfMemory() {
- // Trying to allocate an array larger than Array::kMaxElements
- // results in a RangeError instead of an OutOfMemoryError.
- // To always obtain an OutOfMemoryError we create more than one List.
- List<List> out = <List>[];
- // This generates an exception on 32 bit machines.
- for (var i = 0; i < 8; i++) {
- out.add(new List(pow(2, 28) - 1));
- }
- // This generates an exception on 64 bit machines.
- for (var i = 0; i < 64; i++) {
- out.add(new List(pow(2, 58) - 1));
- }
-}
-
-var tests = [
- hasStoppedAtExit,
-
- (Isolate isolate) async {
- await isolate.reload();
- expect(isolate.error, isNotNull);
- expect(isolate.error.message.contains('Out of Memory'), isTrue);
- }
-];
-
-main(args) async => runIsolateTests(args,
- tests,
- pause_on_exit: true,
- testeeConcurrent: goOutOfMemory);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698