This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] for PR 27735
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Daniel Berlin <dberlin at dberlin dot org>
- Cc: Eric Botcazou <ebotcazou at libertysurf dot fr>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 10 Aug 2006 13:34:39 +0000 (UTC)
- Subject: Re: [patch] for PR 27735
- References: <20060524095159.GA14182@atrey.karlin.mff.cuni.cz> <200608101212.58767.ebotcazou@libertysurf.fr> <44DB27D8.8070701@dberlin.org>
On Thu, 10 Aug 2006, Daniel Berlin wrote:
> You aren't in charge of maintaining the testsuite, so i'm not sure why
> you are trying to change the way it's currently being done. For
> example, the only test in gcc.dg that contains information about who
> reported is a single test from 2003. There are plenty of tests that are
> named after the PR number.
There are lots of tests with information about the reporter, e.g.
20010622-1.c, enum-compat-1.c. It just isn't any any particular format
you can conveniently grep for. codingconventions.html explicitly asks for
this:
Where appropriate, testsuite entries should include comments giving
their origin: the people who added them or submitted the bug report
they relate to, possibly with a reference to a PR in our bug tracking
system. There are some copyright guidelines on what can be included in
the testsuite.
sourcebuild.texi discusses naming:
In general C testcases have a trailing @file{-@var{n}.c}, starting
with @file{-1.c}, in case other testcases with similar names are added
later. If the test is a test of some well-defined feature, it should
have a name referring to that feature such as
@file{@var{feature}-1.c}. If it does not test a well-defined feature
but just happens to exercise a bug somewhere in the compiler, and a
bug report has been filed for this bug in the GCC bug database,
@file{pr@var{bug-number}-1.c} is the appropriate form of name.
--
Joseph S. Myers
joseph@codesourcery.com