Make the message test suite run without slow asserts.

R=danno@chromium.org

Review URL: https://codereview.chromium.org/39303004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17381 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent b5627c9a
...@@ -35,6 +35,7 @@ from testrunner.objects import testcase ...@@ -35,6 +35,7 @@ from testrunner.objects import testcase
FLAGS_PATTERN = re.compile(r"//\s+Flags:(.*)") FLAGS_PATTERN = re.compile(r"//\s+Flags:(.*)")
INVALID_FLAGS = ["--enable-slow-asserts"]
class MessageTestSuite(testsuite.TestSuite): class MessageTestSuite(testsuite.TestSuite):
...@@ -62,6 +63,7 @@ class MessageTestSuite(testsuite.TestSuite): ...@@ -62,6 +63,7 @@ class MessageTestSuite(testsuite.TestSuite):
for match in flags_match: for match in flags_match:
result += match.strip().split() result += match.strip().split()
result += context.mode_flags result += context.mode_flags
result = [x for x in result if x not in INVALID_FLAGS]
result.append(os.path.join(self.root, testcase.path + ".js")) result.append(os.path.join(self.root, testcase.path + ".js"))
return testcase.flags + result return testcase.flags + result
......
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