Mark tests as not working under TARGET_JVM
[mono.git] / mcs / class / corlib / Test / System.Reflection / ParameterInfoTest.cs
index baa20a6c13e3817f0e016d7b2e0d1bd6e19d9f1a..4267754c6bc372e6dcb19a8f9b61881f1dcfba9c 100644 (file)
@@ -10,7 +10,9 @@
 using System;
 using System.Threading;
 using System.Reflection;
+#if !TARGET_JVM
 using System.Reflection.Emit;
+#endif // TARGET_JVM
 using System.Runtime.InteropServices;
 
 using NUnit.Framework;
@@ -61,7 +63,7 @@ public class ParameterInfoTest : Assertion
 
        public static void paramMethod (int i, [In] int j, [Out] int k, [Optional] int l, [In,Out] int m, [DefaultParameterValue (ParamEnum.Foo)] ParamEnum n) {
        }
-#if !TARGET_JVM
+#if !TARGET_JVM // No support for extern methods in TARGET_JVM
        [DllImport ("foo")]
        public extern static void marshalAsMethod (
                [MarshalAs(UnmanagedType.Bool)]int p0, 
@@ -85,6 +87,7 @@ public class ParameterInfoTest : Assertion
                AssertEquals (1, info[3].GetCustomAttributes (typeof (OptionalAttribute), true).Length);
                AssertEquals (2, info[4].GetCustomAttributes (true).Length);
 
+#if !TARGET_JVM // No support for extern methods in TARGET_JVM
                ParameterInfo[] pi = typeof (ParameterInfoTest).GetMethod ("marshalAsMethod").GetParameters ();
                MarshalAsAttribute attr;
 
@@ -99,6 +102,7 @@ public class ParameterInfoTest : Assertion
                AssertEquals (UnmanagedType.CustomMarshaler, attr.Value);
                AssertEquals ("5", attr.MarshalCookie);
                AssertEquals (typeof (Marshal1), Type.GetType (attr.MarshalType));
+#endif
        }
 #endif
 }