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

Jim Wilson wilson@specifix.com
Fri Jul 7 22:49:00 GMT 2006


FX Coudert wrote:
> I'd like to include cases in the gfortran testsuite to check that we 
> correctly issue a run-time error, and exit with non-zero code.

Try dg-error.  There are lots of examples to look at in existing 
testcases, including in the gfortran.dg directory.
-- 
Jim Wilson, GNU Tools Support, http://www.specifix.com



More information about the Gcc mailing list