diff options
author | Justin Clark-Casey (justincc) | 2011-03-26 00:34:49 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-03-26 00:34:49 +0000 |
commit | cc8897fcebdc9d3e875c9bf745ecb77678a776e9 (patch) | |
tree | dbc71e5174977e5e4ab2a5115c72b377acafa5d8 /OpenSim/Region/CoreModules/World/Land/Tests | |
parent | Start using IPrimCounts populated by PrimCountModule instead of LandData coun... (diff) | |
download | opensim-SC_OLD-cc8897fcebdc9d3e875c9bf745ecb77678a776e9.zip opensim-SC_OLD-cc8897fcebdc9d3e875c9bf745ecb77678a776e9.tar.gz opensim-SC_OLD-cc8897fcebdc9d3e875c9bf745ecb77678a776e9.tar.bz2 opensim-SC_OLD-cc8897fcebdc9d3e875c9bf745ecb77678a776e9.tar.xz |
Add test for PCM taint. This currently fails due to unexpected behaviour of SceneGraph.ForEachSOG(). This will be corrected soon.
Also adds lots of temproarily debug logging
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Land/Tests')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs b/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs index c9d393f..80b2859 100644 --- a/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs +++ b/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs | |||
@@ -126,6 +126,28 @@ namespace OpenSim.Region.CoreModules.World.Land.Tests | |||
126 | Assert.That(pc.Users[m_userId], Is.EqualTo(1)); | 126 | Assert.That(pc.Users[m_userId], Is.EqualTo(1)); |
127 | Assert.That(pc.Users[m_dummyUserId], Is.EqualTo(0)); | 127 | Assert.That(pc.Users[m_dummyUserId], Is.EqualTo(0)); |
128 | Assert.That(pc.Simulator, Is.EqualTo(1)); | 128 | Assert.That(pc.Simulator, Is.EqualTo(1)); |
129 | } | 129 | } |
130 | |||
131 | /// <summary> | ||
132 | /// Test the count is correct after is has been tainted. | ||
133 | /// </summary> | ||
134 | [Test] | ||
135 | public void TestTaint() | ||
136 | { | ||
137 | TestHelper.InMethod(); | ||
138 | IPrimCounts pc = m_lo.PrimCounts; | ||
139 | |||
140 | SceneObjectGroup sog = SceneSetupHelpers.CreateSceneObject(3, m_userId, 0x01); | ||
141 | m_scene.AddNewSceneObject(sog, false); | ||
142 | |||
143 | m_pcm.TaintPrimCount(); | ||
144 | |||
145 | Assert.That(pc.Owner, Is.EqualTo(3)); | ||
146 | Assert.That(pc.Group, Is.EqualTo(0)); | ||
147 | Assert.That(pc.Others, Is.EqualTo(0)); | ||
148 | Assert.That(pc.Users[m_userId], Is.EqualTo(3)); | ||
149 | Assert.That(pc.Users[m_dummyUserId], Is.EqualTo(0)); | ||
150 | Assert.That(pc.Simulator, Is.EqualTo(3)); | ||
151 | } | ||
130 | } | 152 | } |
131 | } \ No newline at end of file | 153 | } \ No newline at end of file |