Revision: 22300
Author: [email protected]
Date: Wed Jul 9 11:39:22 2014 UTC
Log: Make fuzz-natives test generator more robust.
BUG=
[email protected]
Review URL: https://codereview.chromium.org/379803003
http://code.google.com/p/v8/source/detail?r=22300
Modified:
/branches/bleeding_edge/test/fuzz-natives/testcfg.py
=======================================
--- /branches/bleeding_edge/test/fuzz-natives/testcfg.py Fri May 30
09:31:44 2014 UTC
+++ /branches/bleeding_edge/test/fuzz-natives/testcfg.py Wed Jul 9
11:39:22 2014 UTC
@@ -31,11 +31,16 @@
assert False, "Failed to get natives list."
tests = []
for line in output.stdout.strip().split():
- (name, argc) = line.split(",")
- flags = ["--allow-natives-syntax",
- "-e", "var NAME = '%s', ARGC = %s;" % (name, argc)]
- test = testcase.TestCase(self, name, flags)
- tests.append(test)
+ try:
+ (name, argc) = line.split(",")
+ flags = ["--allow-natives-syntax",
+ "-e", "var NAME = '%s', ARGC = %s;" % (name, argc)]
+ test = testcase.TestCase(self, name, flags)
+ tests.append(test)
+ except:
+ # Work-around: If parsing didn't work, it might have been due to
output
+ # caused by other d8 flags.
+ pass
return tests
def GetFlagsForTestCase(self, testcase, context):
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.