Skip to content

Commit

Permalink
Merge pull request dotnet#1107 from krk/master
Browse files Browse the repository at this point in the history
ObjectDisposedException handled in test wrapper.
  • Loading branch information
AndyAyersMS committed Jun 17, 2015
2 parents 5f62317 + 2b004dd commit dcc0795
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions tests/src/Common/Coreclr.TestWrapper/CoreclrTestWrapperLib.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
Expand Down Expand Up @@ -38,7 +39,14 @@ public int RunTest(string cmdLine, string outputfile, string errorfile)
{
if (e.Data == null)
{
outputWaitHandle.Set();
try
{
outputWaitHandle.Set();
}
catch (ObjectDisposedException)
{
// Noop for access after timeout.
}
}
else
{
Expand All @@ -49,7 +57,14 @@ public int RunTest(string cmdLine, string outputfile, string errorfile)
{
if (e.Data == null)
{
errorWaitHandle.Set();
try
{
errorWaitHandle.Set();
}
catch (ObjectDisposedException)
{
// Noop for access after timeout.
}
}
else
{
Expand Down

0 comments on commit dcc0795

Please sign in to comment.