Fix test openFile008(ghci) by changing testlib.py to apply cmd_prefix also for way ghci
The test openFile008(ghci) currently fails on PPC Mac OS X 10.4 as follows:
openFile008: openFile008_testdir/file247: openFile: resource exhausted (Too many open files)
openFile008 opens 1000 files. And since
$ ulimit -n
256
$
on the machine where this happens, we get the error. To be sure, in testsuite/tests/ghc-regress/lib/IO/all.T
we find that this eventuality has been prepared for:
test('openFile008', cmd_prefix('ulimit -n 1024; '), compile_and_run, [''])
But the testsuite driver/testlib.py
does not apply the cmd_prefix for way ghci. As a result, openFile008 succeeds for other ways, but not for the ghci way.
The attached patch changes driver/testlib.py
to apply the cmd_prefix also for way ghci, which is one possible solution to this problem. I have verified that other tests that use cmd_prefix have not been affected by this change.
Best regards Thorkil
Trac metadata
Trac field | Value |
---|---|
Version | 6.9 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Test Suite |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture | Unknown |