Commit 2fe30bb7 authored by Michael Achenbach's avatar Michael Achenbach Committed by Commit Bot

[test] Allow timeouts for benchmarks with gc fuzzer

TBR=sergiyb@chromium.org

Bug: v8:6917
Change-Id: I592f745385fe0aedf2d9fb6f88e51b85663c6865
Reviewed-on: https://chromium-review.googlesource.com/891821
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Reviewed-by: 's avatarMichael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#50947}
parent ac0fb70f
......@@ -104,6 +104,9 @@ class TestSuite(testsuite.TestSuite):
def _test_class(self):
return TestCase
def _suppressed_test_class(self):
return SuppressedTimeoutTestCase
class TestCase(testcase.TestCase):
def _get_files_params(self, ctx):
......@@ -133,5 +136,12 @@ class TestCase(testcase.TestCase):
return os.path.join(self.suite.testroot, self.path + self._get_suffix())
class SuppressedTimeoutTestCase(TestCase):
"""The same as a standard test case allowing timeouts."""
def _prepare_outcomes(self, *args, **kwargs):
super(SuppressedTimeoutTestCase, self)._prepare_outcomes(*args, **kwargs)
self.expected_outcomes = self.expected_outcomes + [statusfile.TIMEOUT]
def GetSuite(name, root):
return TestSuite(name, root)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment