From: Doug Evans <dje@google.com>
To: Pierre Muller <pierre.muller@ics-cnrs.unistra.fr>
Cc: Pedro Alves <pedro@codesourcery.com>, gdb-patches@sourceware.org
Subject: Re: [RFA] testsuite avoid tcl error in gdb.threads/gcore-thread.exp
Date: Sat, 26 Jun 2010 17:16:00 -0000 [thread overview]
Message-ID: <AANLkTinBsLleeLJUQ7DB5wyP9As8IM5OWr3RIHONxGOl@mail.gmail.com> (raw)
In-Reply-To: <5627205469024062490@unknownmsgid>
On Wed, Jun 23, 2010 at 8:31 AM, Pierre Muller
<pierre.muller@ics-cnrs.unistra.fr> wrote:
>> Pedantically, you don't need that "global" statement anymore.
>
> I still didn't really understand this:
> when I run a testsuite with
> 'make check'.
> All individual tests are run from runtest script
> which itself uses runtest procedure to execute
> each .exp file using the source command.
> Thus I was thinking that the code
> inside each .exp file was not at global level,
> but only at 'runtest procedure level', and I am not even sure
> which level that procedure runs.
> Could someone explain to me why we are for sure
> at global level when a .exp file is sourced?
Because runtest invokes the .exp file as:
if { [catch "uplevel #0 source $test_file_name"] == 1 } {
prev parent reply other threads:[~2010-06-26 17:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-23 13:59 Pierre Muller
2010-06-23 14:42 ` Pedro Alves
2010-06-23 15:31 ` Pierre Muller
[not found] ` <5627205469024062490@unknownmsgid>
2010-06-26 17:16 ` Doug Evans [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTinBsLleeLJUQ7DB5wyP9As8IM5OWr3RIHONxGOl@mail.gmail.com \
--to=dje@google.com \
--cc=gdb-patches@sourceware.org \
--cc=pedro@codesourcery.com \
--cc=pierre.muller@ics-cnrs.unistra.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox