X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FTest%2FSystem%2FTypeTest.cs;h=70b07ff249cf5535f546c0e3aa598c00e8b684aa;hb=30c28c41d7859b7de6ecd7afb652468517048d12;hp=6387581c99ea8841425a52b701a817fb25f29529;hpb=0ea41d6afbeda9304c8257560e165740be2d4027;p=mono.git diff --git a/mcs/class/corlib/Test/System/TypeTest.cs b/mcs/class/corlib/Test/System/TypeTest.cs index 6387581c99e..70b07ff249c 100644 --- a/mcs/class/corlib/Test/System/TypeTest.cs +++ b/mcs/class/corlib/Test/System/TypeTest.cs @@ -137,11 +137,16 @@ namespace MonoTests.System Assert.AreEqual (typeof (ICloneable[][]).IsAssignableFrom (typeof (Duper[][])), true, "#12"); // Tests for vectors<->one dimensional arrays */ +#if TARGET_JVM // Lower bounds arrays are not supported for TARGET_JVM. + Array arr1 = Array.CreateInstance (typeof (int), new int[] {1}); + Assert.AreEqual (typeof (int[]).IsAssignableFrom (arr1.GetType ()), true, "#13"); +#else Array arr1 = Array.CreateInstance (typeof (int), new int[] {1}, new int[] {0}); Array arr2 = Array.CreateInstance (typeof (int), new int[] {1}, new int[] {10}); Assert.AreEqual (typeof (int[]).IsAssignableFrom (arr1.GetType ()), true, "#13"); Assert.AreEqual (typeof (int[]).IsAssignableFrom (arr2.GetType ()), false, "#14"); +#endif // TARGET_JVM // Test that arrays of enums can be cast to their base types Assert.AreEqual (typeof (int[]).IsAssignableFrom (typeof (TypeCode[])), true, "#15"); @@ -207,6 +212,7 @@ namespace MonoTests.System } [Test] + [Category ("TargetJvmNotWorking")] public void TestGetPropertyImpl() { // Test getting property that is exact Assert.AreEqual (typeof (NewVTable), typeof (NewVTable).GetProperty ("Item", new Type[1] { typeof (Int32) }).DeclaringType, "#01"); @@ -551,6 +557,7 @@ PublicKeyToken=b77a5c561934e089")); Assert.IsNull (i); } +#if !TARGET_JVM // Reflection.Emit is not supported for TARGET_JVM [Test] public void EqualsUnderlyingType () { @@ -569,6 +576,7 @@ PublicKeyToken=b77a5c561934e089")); Assert.IsTrue (typeof (int).Equals (e)); } +#endif // TARGET_JVM [Test] public void GetElementType_Bug63841 ()