diff options
author | Justin Clark-Casey (justincc) | 2012-11-26 22:25:36 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-11-26 22:25:36 +0000 |
commit | 16e4019eca0bec8802e9bd7d2e7bd228025b701a (patch) | |
tree | aeebcda904a8a69803afe44f4e6ebd8b308546b2 /OpenSim/Data | |
parent | BulletSim: increase vehicle stability by suppressing Bullet's update to angul... (diff) | |
download | opensim-SC-16e4019eca0bec8802e9bd7d2e7bd228025b701a.zip opensim-SC-16e4019eca0bec8802e9bd7d2e7bd228025b701a.tar.gz opensim-SC-16e4019eca0bec8802e9bd7d2e7bd228025b701a.tar.bz2 opensim-SC-16e4019eca0bec8802e9bd7d2e7bd228025b701a.tar.xz |
Fix database service unit test failures by temporarily reverting BasicDataServiceTest extending OpenSimTestCase.
Mono 2.4.3 doesn't like this when running nunit, with nunit throwing
AssetTests`2 : System.MemberAccessException : Cannot create an instance of OpenSim.Data.Tests.AssetTests`2[TConn,TAssetData] because Type.ContainsGenericParameters is true.
and similar. Mono 2.10.8.1 does not have this issue.
So will wait until min version of mono bumps before restoring.
Diffstat (limited to 'OpenSim/Data')
-rw-r--r-- | OpenSim/Data/Tests/BasicDataServiceTest.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Data/Tests/BasicDataServiceTest.cs b/OpenSim/Data/Tests/BasicDataServiceTest.cs index d8019ba..69b79bf 100644 --- a/OpenSim/Data/Tests/BasicDataServiceTest.cs +++ b/OpenSim/Data/Tests/BasicDataServiceTest.cs | |||
@@ -44,9 +44,15 @@ namespace OpenSim.Data.Tests | |||
44 | /// <summary>This is a base class for testing any Data service for any DBMS. | 44 | /// <summary>This is a base class for testing any Data service for any DBMS. |
45 | /// Requires NUnit 2.5 or better (to support the generics). | 45 | /// Requires NUnit 2.5 or better (to support the generics). |
46 | /// </summary> | 46 | /// </summary> |
47 | /// <remarks> | ||
48 | /// FIXME: Should extend OpenSimTestCase but compile on mono 2.4.3 currently fails with | ||
49 | /// AssetTests`2 : System.MemberAccessException : Cannot create an instance of OpenSim.Data.Tests.AssetTests`2[TConn,TAssetData] because Type.ContainsGenericParameters is true. | ||
50 | /// and similar on EstateTests, InventoryTests and RegionTests. | ||
51 | /// Runs fine with mono 2.10.8.1, so easiest thing is to wait until min Mono version uplifts. | ||
52 | /// </remarks> | ||
47 | /// <typeparam name="TConn"></typeparam> | 53 | /// <typeparam name="TConn"></typeparam> |
48 | /// <typeparam name="TService"></typeparam> | 54 | /// <typeparam name="TService"></typeparam> |
49 | public class BasicDataServiceTest<TConn, TService> : OpenSimTestCase | 55 | public class BasicDataServiceTest<TConn, TService> |
50 | where TConn : DbConnection, new() | 56 | where TConn : DbConnection, new() |
51 | where TService : class, new() | 57 | where TService : class, new() |
52 | { | 58 | { |