← Back to team overview

nunit-core team mailing list archive

[Bug 993247] Re: Tests fail with IOException: Too many open files

 

It turns out that AssemblyReader opens a dll and closes it in
AssemblyReader.Dispose. However, AssemblyResolver that creates
AssemblyReader never disposes it, so the files stays open until
eventually GC calls Dispose. On Linux this causes us to eventually run
out of file handles.

Attached is a suggested fix. I did not include a unit test because I
don't know how I could test this specific scenario.

** Patch added: "Suggested fix"
   https://bugs.launchpad.net/nunitv2/+bug/993247/+attachment/3125057/+files/Bug-993247-Fix-Too-many-open-files-problem-when-runn.patch

-- 
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/993247

Title:
  Tests fail with IOException: Too many open files

Status in NUnit V2 Test Framework:
  New

Bug description:
  When I run the unit tests of our project on Linux they fail with an
  IOException: Too many open files. The tests work fine on Windows, and
  they work if I run them fixture by fixture, or if I run them in the
  GUI.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/993247/+subscriptions


Follow ups

References