[GHC] #10345: Testsuite timeout_multiplier setting does not work as expected

GHC ghc-devs at haskell.org
Thu Apr 23 08:09:36 UTC 2015


#10345: Testsuite timeout_multiplier setting does not work as expected
-------------------------------------+-------------------------------------
              Reporter:  jstolarek   |             Owner:
                  Type:  bug         |            Status:  new
              Priority:  normal      |         Milestone:
             Component:  Test Suite  |           Version:  7.11
              Keywords:              |  Operating System:  Unknown/Multiple
          Architecture:              |   Type of failure:  Other
  Unknown/Multiple                   |        Blocked By:
             Test Case:              |   Related Tickets:
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------
 I have a test case that - if failed - sends GHC into an infinite loop. The
 test case is small so I don't want to wait for default timeout (currently
 that's 5 minutes). The testsuite provides `timeout_multiplier` function to
 modify the default timeout but that setting seems to be ignored and the
 test is killed only after the default timeout time. I added my test to
 `all.T` file like this:

 {{{
 test('tc265', timeout_multiplier(0.01), compile, [''])
 }}}

 I also tried putting timeout setting into an array
 (`[timeout_multiplier(0.01)]`) but with no result.

 Merijn reports having same problems and bypassing them by writing a test
 that forks itself and kills the child process after a given timeout - see
 [[GhcFile(libraries/base/tests/T8089.hs)]].

 I am adding a note on [[wiki:Building/RunningTests/Adding#Thesetupfield]]
 that this field does not work currently. Once this bug is fixed we need to
 remove that note.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10345>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list