Copyright status of example code in Bugzilla - how to deal with when writing testcases.
Andrew Pinski
pinskia@physics.uc.edu
Mon Mar 28 19:27:00 GMT 2005
>
> On Monday, March 28, 2005, at 12:56 AM, Toon Moene wrote:
> > How do we deal with this, copyright-wise ? Do we have to take special
> > care when deriving test-cases from them ?
>
> The canonical method I use is to delete all aspects of the program that
> don't influence the bug, comments, unused/unneeded functions,
> variables, statements and expressions. After that first step, usually
> we wind up with something that doesn't contain enough to be covered by
> copyright. From there, we just check it in. People that would be
> shocked and horrified that we do this, should not submit bug reports.
The code for these testcases submitted so far are about 12 lines a piece
and have almost nothing which can tell where they came from (Other than
comments in the code).
-- Pinski
More information about the Gcc
mailing list