This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Remove symlinks created in argv0-symlink.exp and general cleanup
- From: Pedro Alves <palves at redhat dot com>
- To: Simon Marchi <simon dot marchi at ericsson dot com>, gdb-patches at sourceware dot org
- Date: Mon, 03 Aug 2015 17:34:25 +0100
- Subject: Re: [PATCH] Remove symlinks created in argv0-symlink.exp and general cleanup
- Authentication-results: sourceware.org; auth=none
- References: <1438287227-11303-1-git-send-email-simon dot marchi at ericsson dot com> <55BF7962 dot 3060106 at redhat dot com> <55BF85BC dot 8040102 at ericsson dot com>
On 08/03/2015 04:16 PM, Simon Marchi wrote:
> The problem is that it also affects when running other tests.
> For example, doing a
>
> $ make check RUNTESTFLAGS="argv0-symlink.exp"
>
> and then
>
> $ make check RUNTESTFLAGS="whatis.exp"
>
> gives
>
> http://paste.ubuntu.com/11993577/
Urgh. Maybe there's some other change to argv0-symlink.exp
that could be made to avoid this? I haven't looked at this
in enough detail to give a good informed suggestion, but
maybe putting the symlink elsewhere?
>
> At least, it's possible to avoid it by doing
>
> $ make check RUNTESTFLAGS="gdb.base/whatis.exp"
>
> instead. However, it also affect those as well:
>
> $ make check
> $ make check RUNTESTFLAGS="--directory=gdb.base"
>
> runtest will find all tests recursively, resulting in this:
>
> http://paste.ubuntu.com/11993659/
>
> Building out-of-tree would avoid this altogether, of course. The
> reason I build in-tree is that I use a script [1] to regression-test
> my patches. The script is a bit dumb and requires to build in the
> git repo. I think I'll improve it a bit to make it possible to
> build OOT.
Personally, I'd vote for making in-tree builds, or at least testing,
officially unsupported. I think gcc already does so...
>
> Simon
>
> [1] https://github.com/simark/gdb-check
>
Thanks,
Pedro Alves