From: Daniel Jacobowitz <drow@false.org>
To: Randolph Chung <randolph@tausq.org>
Cc: gdb@sources.redhat.com
Subject: Re: canonicalization of path names in test scripts
Date: Mon, 29 Nov 2004 14:12:00 -0000 [thread overview]
Message-ID: <20041129140640.GA29859@nevyn.them.org> (raw)
In-Reply-To: <20041123193249.GO9148@tausq.org>
On Tue, Nov 23, 2004 at 11:32:50AM -0800, Randolph Chung wrote:
> I'm seeing some FAILs with the testsuite because of different ways to
> expanding srcdir between the testsuite and gdb.
>
> for example, in gdb.mi/mi-basics.exp,
>
> set envirodir [string_to_regexp ${srcdir}/${subdir}]
>
> mi_gdb_test "202-environment-directory ${srcdir}/${subdir}" \
> "\\\^done,source-path=\"${envirodir}.\\\$cdir.\\\$cwd\"" \
> "environment-directory arg operation"
>
> envirodir expands to "\.\./\.\./\.\./gdb-cvs/gdb/testsuite/gdb\.mi.\$cdir.\$cwd"
>
> what gdb actually prints is:
> ^done,source-path="/home/tausq/gdb/build-cvs/gdb/testsuite/../../../gdb-cvs/gdb/testsuite/gdb.mi:$cdir:$cwd"
>
> (i am running the test from /home/tausq/gdb/build-cvs/gdb/testsuite)
>
> what is the best way to fix this? we can of course loosen the match to
> ".*${envirodir}", but that seems rather suboptimal.
I've been working around it by configuring using an absolute path :-)
Alternatively, you could detect this case in the test script. If the
first character of srcdir is not a directory separator, add `pwd`?
--
Daniel Jacobowitz
prev parent reply other threads:[~2004-11-29 14:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-23 20:41 Randolph Chung
2004-11-29 14:12 ` Daniel Jacobowitz [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=20041129140640.GA29859@nevyn.them.org \
--to=drow@false.org \
--cc=gdb@sources.redhat.com \
--cc=randolph@tausq.org \
/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