#2086: Fix test openFile008(ghci) by changing testlib.py to apply cmd_prefix 
also
for way ghci
----------------------------+-----------------------------------------------
    Reporter:  thorkilnaur  |       Owner:             
        Type:  bug          |      Status:  new        
    Priority:  normal       |   Component:  Test Suite 
     Version:  6.9          |    Severity:  normal     
    Keywords:               |    Testcase:  openFile008
Architecture:  Unknown      |          Os:  MacOS X    
----------------------------+-----------------------------------------------
 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

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2086>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to