Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(300)

Unified Diff: tests/callingconv/generate.py

Issue 8366024: Add pnacl-gcc generated code back into the callingconv test mix (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/callingconv/callingconv.c ('k') | tests/callingconv/nacl.scons » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/callingconv/generate.py
===================================================================
--- tests/callingconv/generate.py (revision 6994)
+++ tests/callingconv/generate.py (working copy)
@@ -318,18 +318,20 @@
for i in xrange(settings.num_functions) ]
calls = [ ]
+ callcount = 0
for f in functions:
- calls += [ TestCall(settings, i, f)
- for i in xrange(settings.calls_per_func) ]
+ for i in xrange(settings.calls_per_func):
+ calls.append(TestCall(settings, callcount, f))
+ callcount += 1
num_asserts = sum([ c.num_asserts for c in calls ])
return (functions, calls, num_asserts)
class TestCall(object):
- def __init__(self, settings, test_id, function):
+ def __init__(self, settings, call_id, function):
self.settings = settings
- self.id = test_id
+ self.id = call_id
self.f = function
self.num_var_args = random.randint(0, self.settings.max_args_per_func -
« no previous file with comments | « tests/callingconv/callingconv.c ('k') | tests/callingconv/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698