From 55d5b022447f4764997fd534638cdd75f0bd30f2 Mon Sep 17 00:00:00 2001 From: "jkummerow@chromium.org" Date: Mon, 24 Mar 2014 10:37:16 +0000 Subject: [PATCH] Delete mjsunit/string-oom-slow-* tests. They are too slow, and there is no feasible way to speed them up. R=yangguo@chromium.org Review URL: https://codereview.chromium.org/205553005 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20186 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- test/mjsunit/mjsunit.status | 1 - test/mjsunit/string-oom-slow-escape.js | 14 -------------- test/mjsunit/string-oom-slow-json-stringify.js | 13 ------------- test/mjsunit/string-oom-slow-replace-one-with-string.js | 12 ------------ test/mjsunit/string-oom-slow-to-uppercase.js | 12 ------------ 5 files changed, 52 deletions(-) delete mode 100644 test/mjsunit/string-oom-slow-escape.js delete mode 100644 test/mjsunit/string-oom-slow-json-stringify.js delete mode 100644 test/mjsunit/string-oom-slow-replace-one-with-string.js delete mode 100644 test/mjsunit/string-oom-slow-to-uppercase.js diff --git a/test/mjsunit/mjsunit.status b/test/mjsunit/mjsunit.status index 9497094..05f9dd3 100644 --- a/test/mjsunit/mjsunit.status +++ b/test/mjsunit/mjsunit.status @@ -44,7 +44,6 @@ # When that bug is fixed, revert the expectation to: # Skip long running test in debug and allow it to timeout in release mode. # regress/regress-524: [PASS, TIMEOUT, ['mode == debug', SKIP]], - 'string-oom-slow-*': [PASS, SLOW, ['mode == debug', SKIP]], # This test non-deterministically runs out of memory on Windows ia32. 'regress/regress-crbug-160010': [SKIP], diff --git a/test/mjsunit/string-oom-slow-escape.js b/test/mjsunit/string-oom-slow-escape.js deleted file mode 100644 index 34088c0..0000000 --- a/test/mjsunit/string-oom-slow-escape.js +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2014 the V8 project authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - - -var a = '<'; -for (var i = 0; i < 26; i++) a += a; -a = a + a + a; - -function escape_a() { - escape(a); -} - -assertThrows(escape_a, RangeError); diff --git a/test/mjsunit/string-oom-slow-json-stringify.js b/test/mjsunit/string-oom-slow-json-stringify.js deleted file mode 100644 index 2f99655..0000000 --- a/test/mjsunit/string-oom-slow-json-stringify.js +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright 2014 the V8 project authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -var a = 'a'; -for (var i = 0; i < 20; i++) a += a; -for (var i = 0; i < 8; i++) a = [a, a]; - -function stringify() { - JSON.stringify(a); -} - -assertThrows(stringify, RangeError); diff --git a/test/mjsunit/string-oom-slow-replace-one-with-string.js b/test/mjsunit/string-oom-slow-replace-one-with-string.js deleted file mode 100644 index bfcbe0f..0000000 --- a/test/mjsunit/string-oom-slow-replace-one-with-string.js +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright 2014 the V8 project authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -var a = 'a'; -for (var i = 0; i < 27; i++) a += a; - -function replace() { - a.replace('a', a); -} - -assertThrows(replace, RangeError); diff --git a/test/mjsunit/string-oom-slow-to-uppercase.js b/test/mjsunit/string-oom-slow-to-uppercase.js deleted file mode 100644 index 79f975b..0000000 --- a/test/mjsunit/string-oom-slow-to-uppercase.js +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright 2014 the V8 project authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -var s = "\u00df"; // ß -for (var i = 0; i < 27; i++) s += s; - -function upper() { - s.toUpperCase(); -} - -assertThrows(upper, RangeError); -- 2.7.4