public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
* Fwd: runtest takes too long on get_local_hostname
       [not found] <abfcef90-6746-63be-301d-35825553f783@suse.de>
@ 2019-01-01  0:00 ` Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2019-01-01  0:00 UTC (permalink / raw)
  To: Jakub Jelinek, Mark Wielaard; +Cc: dwz

Hi,

FYI, I ran into this dejagnu problem with the dwz testsuite.

Filed as http://debbugs.gnu.org/cgi/bugreport.cgi?bug=35069 .

Thanks,
- Tom

-------- Forwarded Message --------
Subject: runtest takes too long on get_local_hostname
Date: Mon, 1 Apr 2019 12:05:50 +0200
From: Tom de Vries <tdevries@suse.de>
To: bug-dejagnu@gnu.org

Hi,

I've setup a dejagnu testsuite for the dwz component (
https://sourceware.org/git/?p=dwz.git;a=summary ).

I'm running into the following problem.

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

I manage to work around this by editing /usr/share/dejagnu/runtest.exp
and redefining get_local_hostname like this:
...
proc get_local_hostname { } {
    return [exec hostname]
}
...

I think it's a bug that a testsuite run that tests no network
functionality slows down by a factor of 5 when there's no network
connection.

[ In absence of a fix, I would already be grateful if somebody can point
out to me how I can work around this in a site.exp or board file or some
such, I tried myself but didn't manage to make that work. ]

Thanks,
- Tom

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-04-01 10:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <abfcef90-6746-63be-301d-35825553f783@suse.de>
2019-01-01  0:00 ` Fwd: runtest takes too long on get_local_hostname Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).