aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/Tests/BasicRegionTest.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-09-18 17:47:29 +0000
committerTeravus Ovares2008-09-18 17:47:29 +0000
commite6f3181d3a5f0e5ecd0c813c4f375f16285ddebe (patch)
tree928693aecbc50e4e38222569ebc2b0511e6c4f9d /OpenSim/Data/Tests/BasicRegionTest.cs
parentRemove redundant permissions check in OSSL_Api.cs (diff)
downloadopensim-SC_OLD-e6f3181d3a5f0e5ecd0c813c4f375f16285ddebe.zip
opensim-SC_OLD-e6f3181d3a5f0e5ecd0c813c4f375f16285ddebe.tar.gz
opensim-SC_OLD-e6f3181d3a5f0e5ecd0c813c4f375f16285ddebe.tar.bz2
opensim-SC_OLD-e6f3181d3a5f0e5ecd0c813c4f375f16285ddebe.tar.xz
* Updates the SQLite region database to support the same properties that the MySQL version does for the table, prims.
* If this causes any unit tests to fail, the tests need to be updated.
Diffstat (limited to 'OpenSim/Data/Tests/BasicRegionTest.cs')
-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