From d6250959597fceec30f1df6355970f385cfd4742 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Thu, 20 Nov 2008 18:28:30 +0000 Subject: * Allow physics dlls to be loaded separately, rather than just the contents of bin/Physics * This is primarily to see if not loading ODE in the unit tests will allow them to proceed, though the option of separate loading is probably a good thing in itself --- OpenSim/Region/Environment/Scenes/Tests/SceneObjectTests.cs | 9 +++++++++ OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment') diff --git a/OpenSim/Region/Environment/Scenes/Tests/SceneObjectTests.cs b/OpenSim/Region/Environment/Scenes/Tests/SceneObjectTests.cs index 81d88e2..66ea59e 100644 --- a/OpenSim/Region/Environment/Scenes/Tests/SceneObjectTests.cs +++ b/OpenSim/Region/Environment/Scenes/Tests/SceneObjectTests.cs @@ -83,5 +83,14 @@ namespace OpenSim.Region.Environment.Scenes.Tests Assert.That(retrievedPart, Is.Null); } + + /// + /// Test removing an object + /// + public void TestRemoveSceneObjectAsync() + { + TestScene scene = SceneTestUtils.SetupScene(); + SceneObjectPart part = SceneTestUtils.AddSceneObject(scene); + } } } \ No newline at end of file diff --git a/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs b/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs index 1cdd32c..289bf87 100644 --- a/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs +++ b/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs @@ -63,7 +63,7 @@ namespace OpenSim.Region.Environment.Scenes.Tests testScene.LandChannel = new TestLandChannel(); PhysicsPluginManager physicsPluginManager = new PhysicsPluginManager(); - physicsPluginManager.LoadPlugins(); + physicsPluginManager.LoadPlugin("Physics/OpenSim.Region.Physics.BasicPhysicsPlugin.dll"); testScene.PhysicsScene = physicsPluginManager.GetPhysicsScene("basicphysics", "ZeroMesher", configSource); return testScene; -- cgit v1.1