This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC dejagnu testsuite: how to check for non-zero exit code?


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.



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