aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/Tests
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Data/Tests')
-rw-r--r--OpenSim/Data/Tests/BasicRegionTest.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Data/Tests/BasicRegionTest.cs b/OpenSim/Data/Tests/BasicRegionTest.cs
index b5e9ed4..05e3827 100644
--- a/OpenSim/Data/Tests/BasicRegionTest.cs
+++ b/OpenSim/Data/Tests/BasicRegionTest.cs
@@ -205,6 +205,14 @@ namespace OpenSim.Data.Tests
205 // common failure case is people adding new fields that aren't 205 // common failure case is people adding new fields that aren't
206 // initialized, but have non-null db constraints. We should 206 // initialized, but have non-null db constraints. We should
207 // honestly be passing more and more null things in here. 207 // honestly be passing more and more null things in here.
208 //
209 // Please note that in Sqlite.BuildPrim there is a commented out inline version
210 // of this so you can debug and step through the build process and check the fields
211 //
212 // Real World Value: Tests for situation where extending a SceneObjectGroup/SceneObjectPart
213 // causes the application to crash at the database layer because of null values
214 // in NOT NULL fields
215 //
208 private SceneObjectGroup NewSOG(string name) 216 private SceneObjectGroup NewSOG(string name)
209 { 217 {
210 SceneObjectGroup sog = new SceneObjectGroup(); 218 SceneObjectGroup sog = new SceneObjectGroup();
@@ -218,7 +226,8 @@ namespace OpenSim.Data.Tests
218 sop.UUID = UUID.Random(); 226 sop.UUID = UUID.Random();
219 sop.Shape = PrimitiveBaseShape.Default; 227 sop.Shape = PrimitiveBaseShape.Default;
220 sog.AddPart(sop); 228 sog.AddPart(sop);
221 sog.RootPart = sop; 229 sog.RootPart = sop;
230
222 return sog; 231 return sog;
223 } 232 }
224 233