[commit: ghc] master: Double the file descriptor limit for openFile008 (8f7194f)

git at git.haskell.org git at git.haskell.org
Wed Jun 29 13:06:46 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/8f7194fae23bdc6db72fc5784933f50310ce51f9/ghc

>---------------------------------------------------------------

commit 8f7194fae23bdc6db72fc5784933f50310ce51f9
Author: Bartosz Nitka <niteria at gmail.com>
Date:   Wed Jun 29 06:10:20 2016 -0700

    Double the file descriptor limit for openFile008
    
    I have get test failures on `openFile008` with
    `openFile: resource exhausted (Too many open files)` when running
    inside `./validate`, but not when I run the test individually.
    I suspect that's because with `./validate` parallelism of 33 threads
    I go just above the `1024` file descriptor limit.
    This is probably related to the recent change:
    `58f0086b70f2: Testsuite: open/close stdin/stdout/stderr explicitly`
    but I haven't looked deep enough to understand exactly how.
    I think bumping this is harmless, but I don't really know why it's
    necessary at all.
    
    Test Plan: ./validate
    
    Reviewers: austin, thomie, hvr, bgamari, simonmar
    
    Reviewed By: simonmar
    
    Subscribers: simonmar
    
    Differential Revision: https://phabricator.haskell.org/D2368


>---------------------------------------------------------------

8f7194fae23bdc6db72fc5784933f50310ce51f9
 libraries/base/tests/IO/all.T | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libraries/base/tests/IO/all.T b/libraries/base/tests/IO/all.T
index 56bb44d..44619dc 100644
--- a/libraries/base/tests/IO/all.T
+++ b/libraries/base/tests/IO/all.T
@@ -75,7 +75,7 @@ test('openFile005',  extra_clean(['openFile005.out1', 'openFile005.out2']),
      compile_and_run, [''])
 test('openFile006', extra_clean(['openFile006.out']), compile_and_run, [''])
 test('openFile007', extra_clean(['openFile007.out']), compile_and_run, [''])
-test('openFile008', cmd_prefix('ulimit -n 1024; '), compile_and_run, [''])
+test('openFile008', cmd_prefix('ulimit -n 2048; '), compile_and_run, [''])
 
 test('putStr001',    normal, compile_and_run, [''])
 test('readFile001',  extra_clean(['readFile001.out']),



More information about the ghc-commits mailing list