You've already forked linux-packaging-mono
Imported Upstream version 3.10.0
Former-commit-id: 172c8e3c300b39d5785c7a3e8dfb08ebdbc1a99b
This commit is contained in:
@ -25,9 +25,7 @@ namespace MonoTests.System.Threading
|
||||
{
|
||||
public static void NoPrincipal ()
|
||||
{
|
||||
#if !TARGET_JVM // AppDomain.SetPrincipalPolicy not supported for TARGET_JVM
|
||||
AppDomain.CurrentDomain.SetPrincipalPolicy (PrincipalPolicy.NoPrincipal);
|
||||
#endif
|
||||
IPrincipal p = Thread.CurrentPrincipal;
|
||||
Assert.IsNull (p, "#1");
|
||||
|
||||
@ -39,7 +37,6 @@ namespace MonoTests.System.Threading
|
||||
// in this case we can return to null
|
||||
}
|
||||
|
||||
#if !TARGET_JVM // AppDomain.SetPrincipalPolicy not supported for TARGET_JVM
|
||||
public static void UnauthenticatedPrincipal ()
|
||||
{
|
||||
AppDomain.CurrentDomain.SetPrincipalPolicy (PrincipalPolicy.UnauthenticatedPrincipal);
|
||||
@ -76,7 +73,6 @@ namespace MonoTests.System.Threading
|
||||
Assert.IsNotNull (Thread.CurrentPrincipal, "#7");
|
||||
// in this case we can't return to null
|
||||
}
|
||||
#endif // TARGET_JVM
|
||||
|
||||
public static void CopyOnNewThread ()
|
||||
{
|
||||
@ -684,7 +680,6 @@ namespace MonoTests.System.Threading
|
||||
}
|
||||
}
|
||||
|
||||
#if !TARGET_JVM // AppDomain.SetPrincipalPolicy not supported for TARGET_JVM
|
||||
[Test]
|
||||
[Ignore ("see comment below.")]
|
||||
public void CurrentPrincipal_PrincipalPolicy_UnauthenticatedPrincipal ()
|
||||
@ -713,7 +708,6 @@ namespace MonoTests.System.Threading
|
||||
t.Abort ();
|
||||
}
|
||||
}
|
||||
#endif // TARGET_JVM
|
||||
|
||||
[Test]
|
||||
public void IPrincipal_CopyOnNewThread ()
|
||||
|
Reference in New Issue
Block a user