Imported Upstream version 5.16.0.100

Former-commit-id: 38faa55fb9669e35e7d8448b15c25dc447f25767
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-08-07 15:19:03 +00:00
parent 0a9828183b
commit 7d7f676260
4419 changed files with 170950 additions and 90273 deletions

View File

@@ -16,15 +16,8 @@ VALID_TEST_PROFILE := $(filter net_4_x, $(PROFILE))
# The test exe is not profile specific, and compiling a 2.0 will make the 4.5 tests fail
ifdef VALID_TEST_PROFILE
TEST_HELPERS_SOURCES = \
../test-helpers/NetworkHelpers.cs \
Test/TypeLoadClass.cs
test-local: dtest-app.exe dtest-excfilter.exe
dtest-app.exe: Test/dtest-app.cs $(TEST_HELPERS_SOURCES)
$(CSCOMPILE) -r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll -r:$(topdir)/class/lib/$(PROFILE)/System.Core.dll -r:$(topdir)/class/lib/$(PROFILE)/System.dll -out:$@ -unsafe $(PLATFORM_DEBUG_FLAGS) -optimize- Test/dtest-app.cs $(TEST_HELPERS_SOURCES)
dtest-excfilter.exe: Test/dtest-excfilter.il
$(ILASM) -out:$@ /exe /debug Test/dtest-excfilter.il
@@ -35,6 +28,13 @@ check:
endif
TEST_HELPERS_SOURCES = \
../test-helpers/NetworkHelpers.cs \
Test/TypeLoadClass.cs
dtest-app.exe: Test/dtest-app.cs $(TEST_HELPERS_SOURCES)
$(CSCOMPILE) -r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll -r:$(topdir)/class/lib/$(PROFILE)/System.Core.dll -r:$(topdir)/class/lib/$(PROFILE)/System.dll -out:$@ -unsafe $(PLATFORM_DEBUG_FLAGS) -optimize- Test/dtest-app.cs $(TEST_HELPERS_SOURCES)
CLEAN_FILES = dtest-app.exe dtest-app.exe.mdb dtest-app.pdb dtest-excfilter.exe dtest-excfilter.exe.mdb dtest-excfilter.pdb
EXTRA_DISTFILES = \

View File

@@ -13,7 +13,9 @@ using System.Threading.Tasks;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
#if !MOBILE
using MonoTests.Helpers;
#endif
public class TestsBase
{
@@ -266,6 +268,8 @@ public class Tests : TestsBase, ITest2
public static bool is_attached = Debugger.IsAttached;
public NestedStruct nested_struct;
static string arg;
#pragma warning restore 0414
public class NestedClass {
@@ -299,6 +303,9 @@ public class Tests : TestsBase, ITest2
}
public static int Main (String[] args) {
if (args.Length == 0)
args = new String [] { Tests.arg };
tls_i = 42;
if (args.Length > 0 && args [0] == "suspend-test")
@@ -321,7 +328,11 @@ public class Tests : TestsBase, ITest2
return 0;
}
if (args.Length >0 && args [0] == "threadpool-io") {
#if !MOBILE
threadpool_io ();
#else
throw new Exception ("Can't run threadpool-io test on mobile");
#endif
return 0;
}
if (args.Length > 0 && args [0] == "attach") {
@@ -350,7 +361,9 @@ public class Tests : TestsBase, ITest2
threads ();
dynamic_methods ();
user ();
#if !MOBILE
type_load ();
#endif
regress ();
gc_suspend ();
set_ip ();
@@ -1561,6 +1574,7 @@ public class Tests : TestsBase, ITest2
Debugger.Log (5, Debugger.IsLogging () ? "A" : "", "B");
}
#if !MOBILE
[MethodImplAttribute (MethodImplOptions.NoInlining)]
public static void type_load () {
type_load_2 ();
@@ -1575,6 +1589,7 @@ public class Tests : TestsBase, ITest2
var c2 = new TypeLoadClass2 ();
c2.ToString ();
}
#endif
[MethodImplAttribute (MethodImplOptions.NoInlining)]
public static void regress () {
@@ -1691,6 +1706,7 @@ public class Tests : TestsBase, ITest2
[MethodImplAttribute (MethodImplOptions.NoInlining)]
public static void threadpool_bp () { }
#if !MOBILE
[MethodImplAttribute (MethodImplOptions.NoInlining)]
public static void threadpool_io () {
// Start a threadpool task that blocks on I/O.
@@ -1730,6 +1746,7 @@ public class Tests : TestsBase, ITest2
streamOut.Close ();
var bsIn = t.Result;
}
#endif
[MethodImplAttribute (MethodImplOptions.NoInlining)]
public void attach_break () {

View File

@@ -1 +1 @@
8fb43da5d617155a9e7868c8c32d0ea4cad9047c
de430ae354a18c8538fb43b6356a1a9c91226072