This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: GCC testsuite timeout question (gcc.c-torture/compile/20001226-1.c)


On Tue, Aug 30, 2005 at 05:44:52PM -0700, Mike Stump wrote:
> On Aug 30, 2005, at 4:34 PM, Steve Ellcey wrote:
> >I see that it is timing out on a slow machine that I have.  I tried  
> >to look around to find out how and where the timeout limit was set  
> >and could not find it.

[snip]

> M-x grep timeout *.exp from gcc and dejagnu yields:
> 
> gcc:
>     if [target_info exists gcc,timeout] {
>         lappend options "timeout=[target_info gcc,timeout]"
>     }
> 
> dejagnu:
>     if [board_info $dest exists testcase_timeout] {
>         set testcase_timeout [board_info $dest testcase_timeout]
>     } else {
>         set testcase_timeout 300
>     }
> 
>         if [info exists timeout] {
>             verbose "Setting timeout to $timeout" 2
>             set status [remote_exec host "$compiler $opts" "" "" ""  
> $timeout]
> 
> so, in .dejagnurc, or your site.exp, or in your boards files, or any  
> place else (cmd line), you should be able to just set it.

   Can you give me an actual example of this? I've tried all of the
following in ~/.dejagnurc without any effect:

set board_info(gcc,timeout) "5400"
set target_info(gcc,timeout) "5400"

set target_info(unix,timeout) "5400"
set board_info(unix,timeout) "5400"
set target_info(host,timeout) "5400"
set board_info(host,timeout) "5400"

set board_info("unix","gcc,timeout") "5400"
set board_info("host","gcc,timeout") "5400"
set target_info("unix","gcc,timeout") "5400"
set target_info("host","gcc,timeout") "5400"

set board_info(host,testcase_timeout) "5400"
set board_info(unix,testcase_timeout) "5400"
set target_info(host,testcase_timeout) "5400"
set target_info(unix,testcase_timeout) "5400"

set timeout 5400
set testcase_timeout 5400

   In case it isn't obvious, I have little or no clue about tcl, expect and
dejagnu. The only time that I've had success in modifying the timeout was by
adding this to /usr/share/dejagnu/baseboards/unix.exp:

set_board_info gcc,timeout 5400

   This only works for the gcc tests, and I'm assuming that s/gcc/g++/ would
make it work for the g++ tests, and so on. But I'd much prefer not to modify
any of DejaGnu's files or any of the files in my copy of the repository.

   The question of how to raise the dejagnu timeout has been asked a few
times before over the years with no good answer, and given that it is likely
for people to run into this issue again, I'd like
<URL:http://gcc.gnu.org/install/test.html> to say a few words about this.

-- 
Rask Ingemann Lambertsen


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