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

Issue 8502006: Extend callingconv_case_by_case test to exercise the "pnaclcall" (Closed)

Created:
9 years, 1 month ago by jvoung - send to chromium...
Modified:
9 years ago
CC:
native-client-reviews_googlegroups.com, pnacl-team_google.com
Visibility:
Public.

Description

Extend callingconv_case_by_case test to exercise the "pnaclcall" attribute (both via declarations, and via function pointer attribs). Also turn on the nontrivial class test, now that we have done an upstream pulldown. BUG= http://code.google.com/p/nativeclient/issues/detail?id=2274 BUG= http://code.google.com/p/nativeclient/issues/detail?id=2403 TEST= run_return_structs_fp_test && run_return_structs_decl_test && run_call_structs_fp_test && run_call_structs_decl_test Committed: http://src.chromium.org/viewvc/native_client?view=rev&revision=7289

Patch Set 1 #

Patch Set 2 : Also turn on other test. #

Total comments: 6

Patch Set 3 : clean up nacl.scons #

Patch Set 4 : remove dangling helper #

Total comments: 2

Patch Set 5 : list comp #

Patch Set 6 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -65 lines) Patch
M tests/callingconv_case_by_case/call_structs.cc View 5 chunks +63 lines, -12 lines 0 comments Download
M tests/callingconv_case_by_case/for_each_type.h View 1 1 chunk +0 lines, -9 lines 0 comments Download
M tests/callingconv_case_by_case/nacl.scons View 1 2 3 4 5 1 chunk +82 lines, -39 lines 0 comments Download
M tests/callingconv_case_by_case/return_structs.cc View 3 chunks +56 lines, -5 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
jvoung - send to chromium...
9 years, 1 month ago (2011-11-08 04:03:20 UTC) #1
jvoung - send to chromium...
PTAL when you have spare cycles -- this version of the test should pass now
9 years, 1 month ago (2011-11-16 19:09:06 UTC) #2
robertm
Some minor readability nits for the python code http://codereview.chromium.org/8502006/diff/3001/tests/callingconv_case_by_case/nacl.scons File tests/callingconv_case_by_case/nacl.scons (right): http://codereview.chromium.org/8502006/diff/3001/tests/callingconv_case_by_case/nacl.scons#newcode24 tests/callingconv_case_by_case/nacl.scons:24: def ...
9 years, 1 month ago (2011-11-16 20:38:28 UTC) #3
jvoung - send to chromium...
http://codereview.chromium.org/8502006/diff/3001/tests/callingconv_case_by_case/nacl.scons File tests/callingconv_case_by_case/nacl.scons (right): http://codereview.chromium.org/8502006/diff/3001/tests/callingconv_case_by_case/nacl.scons#newcode24 tests/callingconv_case_by_case/nacl.scons:24: def AddCommonFlags(envlist): On 2011/11/16 20:38:28, robertm wrote: > I ...
9 years, 1 month ago (2011-11-17 23:06:01 UTC) #4
jvoung - send to chromium...
ptal
9 years ago (2011-11-28 18:30:35 UTC) #5
robertm
One small nit and one bigger remark: Since we are already using c++ can some ...
9 years ago (2011-11-28 18:49:45 UTC) #6
jvoung - send to chromium...
It may be possible to use templates for some parts, but I don't think it ...
9 years ago (2011-11-28 19:23:15 UTC) #7
robertm
9 years ago (2011-11-28 19:24:08 UTC) #8
LGTM


On 2011/11/28 19:23:15, jvoung wrote:
> It may be possible to use templates for some parts, but I don't think it will
> work with everything. The macros were used to
> 
> - include or exclude function attributes at function decl
> - include or exclude function pointer casts
> - split up the code into different compilation units from one file.
> - initialize the types appropriately (variable #sub-element types)
> - check that the type values were preserved appropriately (variable
#sub-element
> types)
> - give the test functions unique names / the right type declaration.
> 
>
http://codereview.chromium.org/8502006/diff/12002/tests/callingconv_case_by_c...
> File tests/callingconv_case_by_case/nacl.scons (right):
> 
>
http://codereview.chromium.org/8502006/diff/12002/tests/callingconv_case_by_c...
> tests/callingconv_case_by_case/nacl.scons:34: envlist = []
> On 2011/11/28 18:49:45, robertm wrote:
> > a list comprension would be more concise
> 
> Done.

Powered by Google App Engine
This is Rietveld 408576698