From: Marek Habersack Date: Thu, 11 Jun 2015 18:11:14 +0000 (+0200) Subject: [tests] Assembly.Location doesn't work on XA X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=mono.git;a=commitdiff_plain;h=c70e55597079aa23c98585ff3b01a8eff713c001 [tests] Assembly.Location doesn't work on XA Xamarin.Android stores assemblies inside apk (or bundled, or AOT-ed) and so Assembly.Location will not point to a real path on the filesystem. It merely contains assembly name. --- diff --git a/mcs/class/corlib/Test/System.Reflection/AssemblyNameTest.cs b/mcs/class/corlib/Test/System.Reflection/AssemblyNameTest.cs index abf316c1a69..318f0c662b9 100644 --- a/mcs/class/corlib/Test/System.Reflection/AssemblyNameTest.cs +++ b/mcs/class/corlib/Test/System.Reflection/AssemblyNameTest.cs @@ -1112,6 +1112,7 @@ public class AssemblyNameTest { } [Test] + [Category ("AndroidNotWorking")] // Accessing assemblies by asm.Location is not supported public void GetAssemblyName_CodeBase () { Assembly execAssembly = Assembly.GetExecutingAssembly (); diff --git a/mcs/class/corlib/Test/System/ActivatorTest.cs b/mcs/class/corlib/Test/System/ActivatorTest.cs index f06c2c19632..a2bf6ab3d32 100644 --- a/mcs/class/corlib/Test/System/ActivatorTest.cs +++ b/mcs/class/corlib/Test/System/ActivatorTest.cs @@ -422,6 +422,7 @@ namespace MonoTests.System { // TODO: Implemente the test methods for all the overriden function using activationAttribute [Test] + [Category ("AndroidNotWorking")] // Assemblies aren't accessible using filesystem paths (they're either in apk, embedded in native code or not there at all public void CreateInstanceFrom () { ObjectHandle objHandle = Activator.CreateInstanceFrom (testLocation, "MonoTests.System.ActivatorTestInternal.COMTest");