diff options
author | Charles Krinke | 2009-02-22 20:52:55 +0000 |
---|---|---|
committer | Charles Krinke | 2009-02-22 20:52:55 +0000 |
commit | 8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49 (patch) | |
tree | 96a24a49de82056060dd9b7bab0cb209d5f1a129 /OpenSim/Region/Physics/OdePlugin/ODETestClass.cs | |
parent | Allow delivery of object messages gridwide (diff) | |
download | opensim-SC_OLD-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.zip opensim-SC_OLD-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.tar.gz opensim-SC_OLD-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.tar.bz2 opensim-SC_OLD-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.tar.xz |
Mantis#3218. Thank you kindly, TLaukkan (Tommil) for a patch that:
* Added log4net dependency to physxplugin in prebuild.xml.
* Added missing m_log fields to classes.
* Replaced Console.WriteLine with appropriate m_log.Xxxx
* Tested that nant test target runs succesfully.
* Tested that local opensim sandbox starts up without errors.
Diffstat (limited to 'OpenSim/Region/Physics/OdePlugin/ODETestClass.cs')
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/ODETestClass.cs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/ODETestClass.cs b/OpenSim/Region/Physics/OdePlugin/ODETestClass.cs index c913639..6ee23db 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODETestClass.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODETestClass.cs | |||
@@ -31,12 +31,16 @@ using NUnit.Framework; | |||
31 | using OpenMetaverse; | 31 | using OpenMetaverse; |
32 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
33 | using OpenSim.Region.Physics.Manager; | 33 | using OpenSim.Region.Physics.Manager; |
34 | using log4net; | ||
35 | using System.Reflection; | ||
34 | 36 | ||
35 | namespace OpenSim.Region.Physics.OdePlugin | 37 | namespace OpenSim.Region.Physics.OdePlugin |
36 | { | 38 | { |
37 | [TestFixture] | 39 | [TestFixture] |
38 | public class ODETestClass | 40 | public class ODETestClass |
39 | { | 41 | { |
42 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | ||
43 | |||
40 | private OdePlugin cbt; | 44 | private OdePlugin cbt; |
41 | private PhysicsScene ps; | 45 | private PhysicsScene ps; |
42 | private IMeshingPlugin imp; | 46 | private IMeshingPlugin imp; |
@@ -92,18 +96,18 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
92 | Assert.That(oprim.m_targetSpace != (IntPtr)0); | 96 | Assert.That(oprim.m_targetSpace != (IntPtr)0); |
93 | 97 | ||
94 | //Assert.That(oprim.m_targetSpace == pscene.space); | 98 | //Assert.That(oprim.m_targetSpace == pscene.space); |
95 | Console.WriteLine("TargetSpace: " + oprim.m_targetSpace + " - SceneMainSpace: " + pscene.space); | 99 | m_log.Info("TargetSpace: " + oprim.m_targetSpace + " - SceneMainSpace: " + pscene.space); |
96 | 100 | ||
97 | Assert.That(!oprim.m_taintadd); | 101 | Assert.That(!oprim.m_taintadd); |
98 | Console.WriteLine("Prim Position (" + oprim.m_localID + "): " + prim.Position.ToString()); | 102 | m_log.Info("Prim Position (" + oprim.m_localID + "): " + prim.Position.ToString()); |
99 | 103 | ||
100 | // Make sure we're above the ground | 104 | // Make sure we're above the ground |
101 | //Assert.That(prim.Position.Z > 20f); | 105 | //Assert.That(prim.Position.Z > 20f); |
102 | //Console.WriteLine("PrimCollisionScore (" + oprim.m_localID + "): " + oprim.m_collisionscore); | 106 | //m_log.Info("PrimCollisionScore (" + oprim.m_localID + "): " + oprim.m_collisionscore); |
103 | 107 | ||
104 | // Make sure we've got a Body | 108 | // Make sure we've got a Body |
105 | Assert.That(oprim.Body != (IntPtr)0); | 109 | Assert.That(oprim.Body != (IntPtr)0); |
106 | //Console.WriteLine( | 110 | //m_log.Info( |
107 | } | 111 | } |
108 | 112 | ||
109 | // Make sure we're not somewhere above the ground | 113 | // Make sure we're not somewhere above the ground |