instrument most of the tests with a new InMethod function that may help us figure

out where that pesky deadlock is during test runs.
This commit is contained in:
Sean Dague
2009-05-07 19:07:08 +00:00
parent 84815ab271
commit ce0a84cbc0
15 changed files with 91 additions and 17 deletions

View File

@@ -26,6 +26,7 @@
*/
using System;
using System.Diagnostics;
namespace OpenSim.Tests.Common
{
@@ -46,5 +47,12 @@ namespace OpenSim.Tests.Common
return false;
}
// A debugging method that can be used to print out which test method you are in
public static void InMethod()
{
StackTrace stackTrace = new StackTrace();
Console.WriteLine("In Test Method : {0}", stackTrace.GetFrame(1).GetMethod().Name);
}
}
}