dejagnu advice needed for g77

Jim Wilson wilson@cygnus.com
Tue Apr 28 19:49:00 GMT 1998


The testsuite is driven by *.exp files in each directory.  These files contain
expect code.  Expect is essentially TCL plus support for controlling and
communicating with other processes.

The structure can be a bit hard to understand, because these expect files
call functions in other expect files which are located in various places,
which call other functions.

Easiest thing to do is just use an existing expect file as a template.
The gcc.c-torture/noncompile/noncompile.exp file does what you need, so
you can start with that.  Just set src_code to the testcase filename, and
set compile_output to a regexp that matches the error you expect.  The
existing ones just match line numbers, which makes them succeed even if someone
rewrites the error message.

Jim



More information about the Gcc mailing list