This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: ping: [patch 5/6] testsuite: Fix prelink-support.exp without prelink installed
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: Jan Kratochvil <jan dot kratochvil at redhat dot com>, Joel Brobecker <brobecker at adacore dot com>
- Date: Mon, 19 Jul 2010 16:06:29 +0100
- Subject: Re: ping: [patch 5/6] testsuite: Fix prelink-support.exp without prelink installed
- References: <20100329161831.GD2940@host0.dyn.jankratochvil.net> <20100629220904.GV2595@adacore.com> <20100704101842.GE6875@host0.dyn.jankratochvil.net>
On Sunday 04 July 2010 11:18:42, Jan Kratochvil wrote:
> On Wed, 30 Jun 2010 00:09:04 +0200, Joel Brobecker wrote:
> > I'm just concerned about matching the output
> > from the prelink command, since it is assuming that it is going to
> > be in English. Do you know if we force the language in the testsuite?
>
> GDB testsuite does not force English, neither dejagnu. But TCL seems to
> ignore locale:
> $ LANG=cs_CZ LC_ALL=cs_CZ tclsh
> % exec /foo
> couldn't execute "/foo": no such file or directory
>
[...]
On a related note: ubuntu/debian's system gdb includes some half cooked
up gdb translations; I often forget it, and since a newly built gdb picks
up the system .po's, the whole testsuite falls over, tripping on translated
strings not matching the expected output:
$ echo $LANG
pt_PT.UTF-8
$ make check
:
:
(gdb) file /home/pedro/gdb/baseline/build/gdb/testsuite/gdb.base/gcore
Lendo símbolos de /home/pedro/gdb/baseline/build/gdb/testsuite/gdb.base/gcore...concluído.
(gdb) ERROR: couldn't load /home/pedro/gdb/baseline/build/gdb/testsuite/gdb.base/gcore into /home/pedro/gdb/baseline/build/gdb/testsuite/../../gdb/gdb.
:
:
I then just remember to do "unset LANG", and rerun the testsuite,
though I think this should be handled by our testsuite automatically
somewhere. How does gcc's testsuite handle this?
(Of course, people on other distros would see this as well if we
had "official" translations.)
--
Pedro Alves