[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#35069: runtest takes too long on get_local_hostname
From: |
Tom de Vries |
Subject: |
bug#35069: runtest takes too long on get_local_hostname |
Date: |
Mon, 1 Apr 2019 15:55:59 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 |
On 01-04-19 15:39, Andreas Schwab wrote:
> On Apr 01 2019, Tom de Vries <address@hidden> wrote:
>
>> Usually the testsuite runs in 12 seconds, but sometimes it takes more
>> than a minute (I managed to reproduce the same problem by running a
>> single gcc testsuite test-case).
>>
>> I tracked this down to tcl info hostname taking a long time, when:
>> - having a vpn session active, and
>> - having no network connection
>
> Tcl calls gethostbyname on your hostname, so you should make sure that
> it is resolvable (by adding it to /etc/hosts, for example, or installing
> nss-myhostname). That's probably a good idea anyway, since there may be
> other programs trying to do that too.
Hi,
that works for me, thanks.
FTR, I do consider this a workaround though. If my internet connection
or configuration is broken in some way, I still expect say, ls to work
reliably, with the same speed. And I would expect the same for dejagnu
runtest (unless I would be testing network functionality, or remote
boards or some such).
Thanks,
- Tom