bug#35069: runtest takes too long on get_local_hostname
Tom de Vries <[email protected]> Mon, 1 Apr 2019 15:55:59 +0200
| Newsgroups | gmane.comp.sysutils.dejagnu.bugs |
|---|---|
| Message-ID | <[email protected]> |
On 01-04-19 15:39, Andreas Schwab wrote: > On Apr 01 2019, Tom de Vries <[email protected]> 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