This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ping: [patch 5/6] testsuite: Fix prelink-support.exp without prelink installed


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]