Author: eyala
Date: 2007-03-14 10:08:09 -0500 (Wed, 14 Mar 2007)
New Revision: 74259
Modified:
trunk/mcs/class/corlib/Test/System.Reflection/ChangeLog
trunk/mcs/class/corlib/Test/System.Reflection/MethodInfoTest.cs
Log:
TARGET_JVM adjustments.
Modified: trunk/mcs/class/corlib/Test/System.Reflection/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System.Reflection/ChangeLog 2007-03-14
14:41:50 UTC (rev 74258)
+++ trunk/mcs/class/corlib/Test/System.Reflection/ChangeLog 2007-03-14
15:08:09 UTC (rev 74259)
@@ -1,3 +1,7 @@
+2007-03-14 Eyal Alaluf <[EMAIL PROTECTED]>
+
+ * MethodInfoTest.cs: Disabled tests for TARGET_JVM that use MethodBody.
+
2006-11-14 Raja R Harinath <[EMAIL PROTECTED]>
* AssemblyTest.cs (bug79872): New test for #79872.
Modified: trunk/mcs/class/corlib/Test/System.Reflection/MethodInfoTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System.Reflection/MethodInfoTest.cs
2007-03-14 14:41:50 UTC (rev 74258)
+++ trunk/mcs/class/corlib/Test/System.Reflection/MethodInfoTest.cs
2007-03-14 15:08:09 UTC (rev 74259)
@@ -177,6 +177,7 @@
}
#if NET_2_0
+#if !TARGET_JVM // MethodBody is not supported for TARGET_JVM
[Test]
public void GetMethodBody_Abstract () {
MethodBody mb = typeof (ICloneable).GetMethod
("Clone").GetMethodBody ();
@@ -203,7 +204,7 @@
Assert.IsNull (mb);
}
}
-#if !TARGET_JVM
+
public static void locals_method () {
byte[] b = new byte [10];
@@ -213,7 +214,7 @@
}
}
}
-#endif
+
[Test]
public void GetMethodBody () {
MethodBody mb = typeof (MethodInfoTest).GetMethod
("locals_method").GetMethodBody ();
@@ -232,6 +233,7 @@
else
Assert.AreEqual (false, locals [1].IsPinned,
"#6");
}
+#endif // TARGET_JVM
public int return_parameter_test () {
return 0;
@@ -247,6 +249,7 @@
//Assert.AreEqual (True, pi.IsRetval);
}
+#if !TARGET_JVM // ReflectionOnly is not supported yet on TARGET_JVM
[Test]
[ExpectedException (typeof (InvalidOperationException))]
public void InvokeOnRefOnlyAssembly ()
@@ -257,6 +260,7 @@
m.Invoke (null, new object [0]);
}
+#endif // TARGET_JVM
[Test]
public void InvokeGenericVtype ()
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches