Imported Upstream version 4.3.2.467

Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
Xamarin Public Jenkins
2016-02-22 11:00:01 -05:00
parent f302175246
commit f3e3aab35a
4097 changed files with 122406 additions and 82300 deletions

View File

@ -69,6 +69,7 @@ namespace MonoCasTests.System.Threading {
// test Demand by denying the caller of the required privileges
#if MONO_FEATURE_THREAD_ABORT
[Test]
[SecurityPermission (SecurityAction.Deny, ControlThread = true)]
[ExpectedException (typeof (SecurityException))]
@ -84,7 +85,8 @@ namespace MonoCasTests.System.Threading {
{
Thread.CurrentThread.Abort (new object [0]);
}
#endif
[Test]
[SecurityPermission (SecurityAction.Deny, ControlThread = true)]
[ExpectedException (typeof (SecurityException))]
@ -101,6 +103,7 @@ namespace MonoCasTests.System.Threading {
Thread.CurrentThread.Interrupt ();
}
#if MONO_FEATURE_THREAD_ABORT
[Test]
[SecurityPermission (SecurityAction.Deny, ControlThread = true)]
[ExpectedException (typeof (SecurityException))]
@ -108,7 +111,9 @@ namespace MonoCasTests.System.Threading {
{
Thread.ResetAbort ();
}
#endif
#if MONO_FEATURE_THREAD_SUSPEND_RESUME
[Test]
[SecurityPermission (SecurityAction.Deny, ControlThread = true)]
[ExpectedException (typeof (SecurityException))]
@ -124,6 +129,7 @@ namespace MonoCasTests.System.Threading {
{
Thread.CurrentThread.Suspend ();
}
#endif
// we use reflection to call Mutex as it's named constructors are protected by
// a LinkDemand (which will be converted into full demand, i.e. a stack walk)