
#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 jstolarek): Replying to [comment:1 thomie]:
I am assuming you are on Linux. Yes, that's correct
When you run the following, does it stop after 3 seconds? * `python testsuite/timeout/timeout.py 3 'sleep 100'` Yes.
* 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? Yes.
I guess it doesn't, otherwise you wouldn't have opened this ticket So the above tests work, but my tests still doesn't time out. An obvious explanation is that I've configured the test incorrectly. Another is that the timeout does not work if GHC becomes unresponsive (ie. hits a black hole). (In the latter case: why would a 5 minute timeout work?)
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.
That work for me as it should - finishes immediately. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10345#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler