Imported Upstream version 4.2.0.179

Former-commit-id: 4610231f55806d2a05ed69e5ff3faa7336cc1479
This commit is contained in:
Xamarin Public Jenkins
2015-08-26 07:17:56 -04:00
committed by Jo Shields
parent aa7da660d6
commit c042cd0c52
7507 changed files with 90259 additions and 657307 deletions

View File

@@ -410,6 +410,7 @@ public class AssemblyBuilderTest
}
[Test]
[Category ("AndroidNotWorking")] // DefineResource doesn't allow path in its fileName parameter and the test attempts to write to / in effect
public void TestDefineResource ()
{
ab.DefineResource ("foo", "FOO", "foo.txt", ResourceAttributes.Public);
@@ -586,6 +587,7 @@ public class AssemblyBuilderTest
}
[Test]
[Category ("AndroidNotWorking")] // Missing Mono.Compilerservices.SymbolWriter assembly
public void TestDefineDynamicModule ()
{
ab.DefineDynamicModule ("foo", "foo.dll");
@@ -1829,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
}
}

View File

@@ -830,6 +830,7 @@ public class ConstructorBuilderTest
// Same as in MethodBuilderTest
[Test]
[Category ("MobileNotWorking")] // No declarative security in the mobile profile
public void AddDeclarativeSecurity_Complete ()
{
ConstructorBuilder cb = genClass.DefineConstructor (
@@ -851,6 +852,7 @@ public class ConstructorBuilderTest
}
[Test]
[Category ("MobileNotWorking")] // No declarative security in the mobile profile
public void AddDeclarativeSecurity_PSet_Null ()
{
ConstructorBuilder cb = genClass.DefineConstructor (
@@ -867,6 +869,7 @@ public class ConstructorBuilderTest
}
[Test]
[Category ("MobileNotWorking")] // No declarative security in the mobile profile
public void AddDeclarativeSecurity_Action_Invalid ()
{
ConstructorBuilder cb = genClass.DefineConstructor (
@@ -892,6 +895,7 @@ public class ConstructorBuilderTest
}
[Test]
[Category ("MobileNotWorking")] // No declarative security in the mobile profile
public void AddDeclarativeSecurity_Action_Duplicate ()
{
ConstructorBuilder cb = genClass.DefineConstructor (

View File

@@ -477,6 +477,8 @@ namespace MonoTests.System.Reflection.Emit
public string Name;
}
#if !MONODROID
// RUNTIME: crash
[Test]
public void TypedRef ()
{
@@ -508,6 +510,7 @@ namespace MonoTests.System.Reflection.Emit
{
Assert.AreEqual (typeof (TypedRefTarget), TypedReference.GetTargetType (tr));
}
#endif
}
}

View File

@@ -136,6 +136,7 @@ namespace MonoTests.System.Reflection.Emit
}
[Test]
[Category ("AndroidNotWorking")] // Missing Mono.CompilerServices.SymbolWriter assembly
public void DefineType_Name_Null ()
{
AssemblyBuilder ab = genAssembly ();
@@ -152,6 +153,7 @@ namespace MonoTests.System.Reflection.Emit
}
[Test]
[Category ("AndroidNotWorking")] // Missing Mono.CompilerServices.SymbolWriter assembly
public void DefineType_Name_Empty ()
{
AssemblyBuilder ab = genAssembly ();
@@ -169,6 +171,7 @@ namespace MonoTests.System.Reflection.Emit
}
[Test]
[Category ("AndroidNotWorking")] // Missing Mono.CompilerServices.SymbolWriter assembly
public void DefineType_Name_NullChar ()
{
AssemblyBuilder ab = genAssembly ();
@@ -188,6 +191,7 @@ namespace MonoTests.System.Reflection.Emit
}
[Test]
[Category ("AndroidNotWorking")] // Missing Mono.CompilerServices.SymbolWriter assembly
public void DefineType_InterfaceNotAbstract ()
{
AssemblyBuilder ab = genAssembly ();
@@ -224,6 +228,7 @@ namespace MonoTests.System.Reflection.Emit
}
[Test]
[Category ("AndroidNotWorking")] // Missing Mono.CompilerServices.SymbolWriter assembly
public void DefineType_Parent_Interface ()
{
TypeBuilder tb;
@@ -241,6 +246,19 @@ namespace MonoTests.System.Reflection.Emit
}
[Test]
[Category ("AndroidNotWorking")] // Missing Mono.CompilerServices.SymbolWriter assembly
public void DefineType_TypeSize ()
{
AssemblyBuilder ab = genAssembly ();
ModuleBuilder mb = ab.DefineDynamicModule ("foo.dll", "foo.dll", true);
TypeBuilder tb = mb.DefineType ("Foo", TypeAttributes.Public | TypeAttributes.Sealed | TypeAttributes.SequentialLayout,
typeof (ValueType), 1);
Assert.AreEqual (1, tb.Size);
}
[Test]
[Category ("AndroidNotWorking")] // Missing Mono.CompilerServices.SymbolWriter assembly
[ExpectedException (typeof (ArgumentException))]
public void DuplicateTypeName () {
AssemblyBuilder ab = genAssembly ();
@@ -256,6 +274,7 @@ namespace MonoTests.System.Reflection.Emit
}
[Test]
[Category ("AndroidNotWorking")] // Missing Mono.CompilerServices.SymbolWriter assembly
public void DuplicateSymbolDocument ()
{
AssemblyBuilder ab = genAssembly ();

View File

@@ -1 +1 @@
b1b7cf320f3f5346dd7e01ef4551018929f2d874
d3115c76913f1792f567eb5069b74d9e4fa77897