[tests] Disable on Android due to environment differences
authorMarek Habersack <grendel@twistedcode.net>
Tue, 7 Jul 2015 09:32:59 +0000 (11:32 +0200)
committerMarek Habersack <grendel@twistedcode.net>
Wed, 15 Jul 2015 18:45:36 +0000 (20:45 +0200)
It's not possible to save the assembly in the current directory on Android and AssemblyBuilder.DefineDynamicModule will not
allow a full path to the assembly to be passed to it. Trying to change the current directory before saving will not work either as
FileStream will then prepend / to the file name (perhaps it's another bug) and write access to the filesystem root is, obviously, denied

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

index eb23d1c1fc4dbef12f21eab4b58a4ff4e7a7b65f..d3115c76913f1792f567eb5069b74d9e4fa77897 100644 (file)
@@ -11031,6 +11031,10 @@ namespace MonoTests.System.Reflection.Emit
                }
 
                [Test]
+               [Category ("AndroidNotWorking")]
+               // It's not possible to save the assembly in the current directory on Android and AssemblyBuilder.DefineDynamicModule will not
+               // allow a full path to the assembly to be passed to it. Trying to change the current directory before saving will not work either as
+               // FileStream will then prepend / to the file name (perhaps it's another bug) and write access to the filesystem root is, obviously, denied
                public void Ldfld_Encoding_10122 () {
                        Build2<Example<int>> ();
                }