[tests] Disable code to prevent Mono runtime crash
authorMarek Habersack <grendel@twistedcode.net>
Tue, 7 Jul 2015 09:23:20 +0000 (11:23 +0200)
committerMarek Habersack <grendel@twistedcode.net>
Wed, 15 Jul 2015 18:45:34 +0000 (20:45 +0200)
AppDomain unloading causes a segfault with the Mono runtime on Android.
Until the cause is found and fixed this code must remain disabled.

mcs/class/corlib/Test/System.Reflection.Emit/AssemblyBuilderTest.cs

index 8c1ecc11abc766c7762efa2961ba4fc96b4403ec..feb4201d8ebdb607db609afa5441c6de3e8dd269 100644 (file)
@@ -1831,9 +1831,13 @@ public class AssemblyBuilderTest
                                fullName);
                        newDomain.DoCallBack (new CrossAppDomainDelegate (helper.Test));
                } finally {
+#if !MONODROID
+                       // RUNTIME: crash
+                       // AppDomain unloading crashes the runtime on Android
                        if (newDomain != null) {
                                AppDomain.Unload (newDomain);
                        }
+#endif
                }
        }