mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user