Make recent regression test resilient against GC stress.
R=danno@chromium.org TEST=mjsunit/regress/regress-165637 Review URL: https://codereview.chromium.org/11824062 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13353 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
7cb764b780
commit
c5cff2c75a
@ -45,6 +45,10 @@ function do_slices() {
|
||||
return Date.now() - start;
|
||||
}
|
||||
|
||||
// Reset the GC interval to be off. Needed so that the runtime of this test
|
||||
// stays within bounds even if we run in GC stress mode.
|
||||
%SetFlags("--gc-interval=-1");
|
||||
|
||||
// Should never take more than 3 seconds (if the bug is fixed, the test takes
|
||||
// considerably less time than 3 seconds).
|
||||
assertTrue(do_slices() < (3 * 1000));
|
||||
|
Loading…
Reference in New Issue
Block a user