This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Copyright status of example code in Bugzilla - how to deal with when writing testcases.
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: mrs at apple dot com (Mike Stump)
- Cc: gcc at gcc dot gnu dot org, toon at moene dot indiv dot nluug dot nl (Toon Moene)
- Date: Mon, 28 Mar 2005 12:51:49 -0500 (EST)
- Subject: Re: Copyright status of example code in Bugzilla - how to deal with when writing testcases.
>
> 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