diff options
author | noelallen@chromium.org <noelallen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-06 15:43:05 +0000 |
---|---|---|
committer | noelallen@chromium.org <noelallen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-06 15:43:05 +0000 |
commit | 6faeb209cd4f0a2f09398361a800124f7937f727 (patch) | |
tree | a04f44643a4a7a6953976fae774215640c117c22 /ppapi/generators/idl_c_proto.py | |
parent | 3a8f32e09df393644ef80e156d2996af553f9bb7 (diff) | |
download | chromium_src-6faeb209cd4f0a2f09398361a800124f7937f727.zip chromium_src-6faeb209cd4f0a2f09398361a800124f7937f727.tar.gz chromium_src-6faeb209cd4f0a2f09398361a800124f7937f727.tar.bz2 |
Added test and fixed bugs with release dependency
Fixed 'visited' bug where sibling were poluting the visit set, preventing dependency expantion.
Fixed release list generation where a node's typeref releases were not constrained by the node's min/max.
Added generator unit tests to PRESUBMIT when changes to generator are detected.
Added test for release dependency when a child uses different releases than the parent.
Fix release dependencies and tests.
R=sehr@chromium.org
BUG=157017
Review URL: https://chromiumcodereview.appspot.com/11419173
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171499 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/generators/idl_c_proto.py')
-rwxr-xr-x | ppapi/generators/idl_c_proto.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ppapi/generators/idl_c_proto.py b/ppapi/generators/idl_c_proto.py index 7df8311..b2b78d4 100755 --- a/ppapi/generators/idl_c_proto.py +++ b/ppapi/generators/idl_c_proto.py @@ -449,7 +449,7 @@ class CGen(object): # TODO(noelallen) : Bug 157017 finish multiversion support if len(build_list) != 1: - node.Error('Can not support multiple versions of node.') + node.Error('Can not support multiple versions of node: %s' % build_list) assert len(build_list) == 1 out = 'typedef %s;\n' % self.GetSignature(node, build_list[0], 'return', @@ -671,7 +671,8 @@ def TestFile(filenode): outstr = CleanString(outstr) if instr != outstr: - ErrOut.Log('Failed match of\n>>%s<<\n>>%s<<\nto:' % (instr, outstr)) + ErrOut.Log('Failed match of\n>>%s<<\nto:\n>>%s<<\nFor:\n' % + (instr, outstr)) node.Dump(1, comments=True) errors += 1 return errors @@ -701,7 +702,7 @@ def TestFiles(filenames): InfoOut.Log('Passed generator test.') return total_errs -def Main(args): +def main(args): filenames = ParseOptions(args) if GetOption('test'): return TestFiles(filenames) @@ -716,5 +717,5 @@ def Main(args): if __name__ == '__main__': - sys.exit(Main(sys.argv[1:])) + sys.exit(main(sys.argv[1:])) |