Double the file descriptor limit for openFile008
authorBartosz Nitka <niteria@gmail.com>
Wed, 29 Jun 2016 13:10:20 +0000 (06:10 -0700)
committerBartosz Nitka <niteria@gmail.com>
Wed, 29 Jun 2016 13:10:22 +0000 (06:10 -0700)
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

libraries/base/tests/IO/all.T

index 56bb44d..44619dc 100644 (file)
@@ -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']),