Mark tests as not working under TARGET_JVM
[mono.git] / mcs / class / corlib / Test / System / TypeTest.cs
index 6387581c99ea8841425a52b701a817fb25f29529..70b07ff249cf5535f546c0e3aa598c00e8b684aa 100644 (file)
@@ -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 ()