Testsuite timeout_multiplier setting does not work as expected
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.
Trac metadata
Trac field | Value |
---|---|
Version | 7.11 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Test Suite |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |