[interp] disable some tests that fail on CI only
[mono.git] / mono / tests / allow-synchronous-major.cs
1 using System;
2 using System.Reflection;
3
4 public class Test
5 {
6         public static int Main ()
7         {
8                 var t = Type.GetType("Mono.Runtime");
9                 if (t == null)
10                         return 1;
11                 var setGCAllowSynchronousMajor = (Func<bool,bool>) Delegate.CreateDelegate(typeof(Func<bool,bool>),
12                                                                                            t,
13                                                                                            "SetGCAllowSynchronousMajor",
14                                                                                            ignoreCase:false,
15                                                                                            throwOnBindFailure:false);
16                 if (setGCAllowSynchronousMajor == null)
17                         return 1;
18
19                 if (!setGCAllowSynchronousMajor (false))
20                         Console.WriteLine ("could not disable synchronous major");
21                 if (!setGCAllowSynchronousMajor (true))
22                         return 1;
23
24                 return 0;
25         }
26 }