This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC testsuite philosophy?
- To: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Subject: Re: GCC testsuite philosophy?
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 21 Mar 2001 06:02:39 +0100
- Cc: Stan Shebs <shebs at apple dot com>, <gcc at gcc dot gnu dot org>
- Organization: CodeSourcery, LLC
- References: <Pine.LNX.4.32.0103210146450.1854-100000@kern.srcf.societies.cam.ac.uk>
"Joseph S. Myers" <jsm28@cam.ac.uk> writes:
[...]
| > Finally, are the arguments to dg-warning and dg-error documented
| > anywhere?
Yes: In dg.exp
# dg-warning regexp comment [{ target/xfail selector } [{.|0|linenum}]]
# indicate a warning message <regexp> is expected on this line
# (the test fails if it doesn't occur)
#
# dg-error regexp comment [{ target/xfail selector } [{.|0|linenum}]]
# indicate an error message <regexp> is expected on this line
# (the test fails if it doesn't occur)
# Linenum=0 for general tool messages (eg: -V arg missing).
# "." means the current line.
dg.exp is flexible. It is just unfortunate it isn't well documented
(and sometime the documentation doesn't match with the actual code).
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com