[Top][All Lists]

[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 12:05:50 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1


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

[ 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. ]

- Tom

reply via email to

[Prev in Thread] Current Thread [Next in Thread]