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

GHC ghc-devs at haskell.org
Thu Jun 11 22:18:25 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
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  Other             |  Unknown/Multiple
      Blocked By:                    |               Test Case:
 Related Tickets:                    |                Blocking:
                                     |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by thomie):

 I can not reproduce this issue yet. Can you try a few things. I am
 assuming you are on Linux.

 When you run the following, does it stop after 3 seconds?
 * `python testsuite/timeout/timeout.py 3 'sleep 100'`

 * In `testsuite/tests/ghc-api/annotations/all.T`, make the following
 change:
 {{{
 -test('annotations', normal, run_command, ['$MAKE -s --no-print-directory
 annotations'])
 +test('annotations', timeout_multiplier(0.01), run_command, ['$MAKE -s
 --no-print-directory annotations'])
 }}}
     When running `make TEST=annotations`, does it stop after 3 seconds?

 I guess it doesn't, otherwise you wouldn't have opened this ticket, but I
 want to be sure it's not something with the test you were writing in
 particular.

 It must be something specific to your platform, as timeout works for me.
 The issue only I seem to be having is that running `python
 testsuite/timeout/timeout.py 10 'echo ok' ` doesn't return immediately,
 but only after 10 seconds. Can you try that one as well? For some reason
 producing output is not allowed.

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


More information about the ghc-tickets mailing list