[bitcode] Disable tests which use filter clauses when running with bitcode.
authorZoltan Varga <vargaz@gmail.com>
Mon, 10 Jul 2017 16:57:52 +0000 (12:57 -0400)
committerZoltan Varga <vargaz@gmail.com>
Mon, 10 Jul 2017 16:57:52 +0000 (12:57 -0400)
mono/mini/exceptions.cs
mono/mini/gshared.cs

index 3251985e4d702f02e7b58499dc727b99bc4949f2..aa5ca277ac544e5e57bdeffbbfd454a0c95de9ab 100644 (file)
@@ -2869,6 +2869,7 @@ class Tests
                }
        }
 
+       [Category ("!BITCODE")]
        public static int test_1_basic_filter_catch () {
                try {
                        MyException e = new MyException ("");
@@ -2880,6 +2881,7 @@ class Tests
                return 0;
        }
 
+       [Category ("!BITCODE")]
        public static int test_1234_complicated_filter_catch () {
                string res = "init";
                try {
@@ -2921,6 +2923,7 @@ class Tests
     [MethodImpl( MethodImplOptions.NoInlining )]
     private static bool ExceptionFilter( byte x, FooStruct item ) => true;
 
+       [Category ("!BITCODE")]
        public static int test_0_filter_caller_area () {
         try {
             throw new Exception();
index 61402f7a4eca4f0314d21eb7918cf5e16ae02a00..6b5bc95f134ca449ac6306ed403d3ee321c920ef 100644 (file)
@@ -1992,8 +1992,10 @@ public class Tests
 
        public static int test_0_isreference_intrins () {
                IFaceIsRef iface = new ClassIsRef ();
-               Console.WriteLine ("X: " + iface.is_ref<AStruct3<int, int, int>> ());
-               Console.WriteLine ("X: " + iface.is_ref<AStruct3<string, int, int>> ());
+               if (iface.is_ref<AStruct3<int, int, int>> ())
+                       return 1;
+               if (!iface.is_ref<AStruct3<string, int, int>> ())
+                       return 2;
                return 0;
        }
 }