Re: [patch] python testsuite disappearing py-objfile-script-gdb.py

Doug Evans
2011-07-13T15:58:21Z

On Wed, Jul 6, 2011 at 7:06 PM, Matt Rice <ratmice@gmail.com> wrote:
> this fixes that py-objfile-script-gdb.py disappears when running the
> testsuite with an
> in-tree build.
>
> had to rename the source file, since the auto-loading API is expecting
> the destination
> file to use the current name.
>
> I'd also tried special casing the
> remote_file host delete ${remote_python_file}
>
> but couldn't figure out some dejagnu equivalent of if is_remote ||
> (!is_remote && ${srcdir} == ".")
> that special casing leaves it attempting to copy the file onto itself,
> but dejagnu
> seems to silently ignore that error.
>
> The file hasn't been modified since its initial commit, so we aren't
> losing a bunch of history,
> just the reference to the atomic commit/other files it was first added with.
>
> 2011-07-06  Matt Rice <ratmice@gmail.com>
>
>        * gdb.python/py-objfile-script-gdb.py: Renamed to
>        py-objfile-script-gdb.py.in.
>        * gdb.python/py-objfile-script-gdb.py.in: Renamed from
>        py-objfile-script-gdb.py.
>        * gdb.python/py-objfile-script.exp: Update reference to
>        py-objfile-script-gdb.py.

ok with me.
Thanks for doing it.

Nit: I think there's no need to have two ChangeLog entries to rename a file.
But no matter.