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

@@ -277,9 +277,21 @@ namespace MonoTests.System.Threading
//Console.WriteLine ("workItems0:{0} workItems1:{1}", workItems0, workItems1);
//Console.WriteLine ("threads:{0}", threads0);
Assert.AreEqual (N, workItems1 - workItems0, "#1");
AssertHelper.GreaterOrEqual ((int)(workItems1 - workItems0), N, "#1");
Assert.IsTrue (threads0 > 0, "#2");
}
#endif
[Test]
public void SetMinThreads ()
{
int workerThreads, cpThreads;
int expectedWt = 64, expectedCpt = 64;
bool set = ThreadPool.SetMinThreads (expectedWt, expectedCpt);
ThreadPool.GetMinThreads (out workerThreads, out cpThreads);
Assert.IsTrue (set, "#1");
Assert.AreEqual (expectedWt, workerThreads, "#2");
Assert.AreEqual (expectedCpt, cpThreads, "#3");
}
}
}

View File

@@ -453,7 +453,6 @@ namespace MonoTests.System.Threading
}
[Test]
[Category ("NotWorkingRuntimeInterpreter")]
public void TestUndivisibleByPageSizeMaxStackSize ()
{
const int undivisible_stacksize = 1048573;
@@ -835,7 +834,6 @@ namespace MonoTests.System.Threading
#endif
[Test]
[Category ("NotWorkingRuntimeInterpreter")]
public void Test_Interrupt ()
{
ManualResetEvent mre = new ManualResetEvent (false);