This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [libstdc++] Also set LD_RUN_PATH in testsuite, add comments


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


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