This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: GCC dejagnu testsuite: how to check for non-zero exit code?
- From: Mike Stump <mrs at apple dot com>
- To: FX Coudert <fxcoudert at gmail dot com>
- Cc: GCC Development <gcc at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>
- Date: Fri, 7 Jul 2006 12:54:07 -0700
- Subject: Re: GCC dejagnu testsuite: how to check for non-zero exit code?
- References: <44AD7732.9040501@gmail.com>
On Jul 6, 2006, at 1:48 PM, FX Coudert wrote:
I'd like to be able to check that this code indeed issue the error
message on stderr and indicate to dejagnu that non-zero exit codes
does not mean that the test FAILed). How can I do that?
There are two strategies, first would be to write a driver for it.
If you check out *.exp, you can find many examples of drivers,
though, none are likely to do just what you want. The second way
would be to extend the semantics of an existing driver to do what you
want. The downsides to the second approach would be causing a
slowdown of the entire rest of the testsuite if done poorly and
needing to require a new version of dejagnu, if you had to modify a
driver from it. I don't think the existing drivers have a way to do
this.