This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [libstdc++] Also set LD_RUN_PATH in testsuite, add comments
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: Phil Edwards <phil at jaj dot com>
- Cc: Janis Johnson <janis187 at us dot ibm dot com>, libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Tue, 1 Jul 2003 11:07:13 -0700
- Subject: Re: [libstdc++] Also set LD_RUN_PATH in testsuite, add comments
- References: <20030630171927.GA10818@disaster.jaj.com> <20030630134320.A5025@us.ibm.com> <20030701174727.GA29317@disaster.jaj.com>
On Tue, Jul 01, 2003 at 01:47:27PM -0400, Phil Edwards wrote:
> On Mon, Jun 30, 2003 at 01:43:20PM -0700, Janis Johnson wrote:
> > On Mon, Jun 30, 2003 at 01:19:27PM -0400, Phil Edwards wrote:
> > > (If a dejagnu expert knows how to make this change outside of system files,
> > > I'd love to hear it. dg-test is set up to take arbitrary options, and
> > > dg-runtest is sort of set up to do the same, /but/ dg-runtest passes the
> > > flags to dg-test in such a way that only tool-specific flags can be passed,
> > > i.e., compiler otpions, but not dejagnu options.)
> >
> > Try setting a variable in ~/.expect.rc, or in a file of that name in
> > a directory specified by DOTDIR.
>
> I shouldn't have said "dejagnu options". It's not an option to runtest(1),
> it's an option to a particular function. Can that still be done in .expect.rc?
It allows defining global variables used in expect functions.
For example, in an .expect.rc file you can have
set keep --keep_output
and then in procedure dg-runtest in dg.exp have something like:
global keep
if ![ info exists keep ] {
set keep ""
}
...
dg-test $keep $testcase $flags ${default-extra-flags}
Janis