From ce0a84cbc0e277dd5be08a20febf13364a985a3a Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Thu, 7 May 2009 19:07:08 +0000 Subject: instrument most of the tests with a new InMethod function that may help us figure out where that pesky deadlock is during test runs. --- OpenSim/Tests/Common/TestHelper.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'OpenSim/Tests') diff --git a/OpenSim/Tests/Common/TestHelper.cs b/OpenSim/Tests/Common/TestHelper.cs index 6853e55..21c2875 100644 --- a/OpenSim/Tests/Common/TestHelper.cs +++ b/OpenSim/Tests/Common/TestHelper.cs @@ -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); + } } } -- cgit v1.1