TestDomain should unload the test AppDomain

Bug #728500 reported by Graham MacDonald
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NUnit V2
Status tracked in Trunk
2.5
Fix Released
High
Charlie Poole
Trunk
Fix Released
High
Charlie Poole

Bug Description

nunit-agent.exe can hang using nunit 2.5.9.10348 if the test assembly creates a thread that is left running on completion of the test case execution. To ensure that the test case code threads are all aborted the test domain class should explicitly unload the test case domain.

NUnit.Util.TestDomain should override the Dispose() method as follows:

public override void Dispose()
{
        base.Dispose();
        Unload();

}

Related branches

Changed in nunitv2:
status: New → Triaged
importance: Undecided → Medium
Changed in nunitv2:
milestone: none → 2.5.10
importance: Medium → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.