This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: GCC testsuite philosophy?


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]