You've already forked linux-packaging-mono
Imported Upstream version 3.10.0
Former-commit-id: 172c8e3c300b39d5785c7a3e8dfb08ebdbc1a99b
This commit is contained in:
@ -38,11 +38,9 @@ namespace MonoTests.System.Threading
|
||||
readonly object obj_1 = "obj_1";
|
||||
readonly object obj_2 = "obj_2";
|
||||
readonly object obj_3 = "obj_3";
|
||||
#if !TARGET_JVM // No support for exchanging two IntPtrs
|
||||
readonly IntPtr iptr_1 = (IntPtr)int32_1;
|
||||
readonly IntPtr iptr_2 = (IntPtr)int32_2;
|
||||
readonly IntPtr iptr_3 = (IntPtr)int32_3;
|
||||
#endif // TARGET_JVM
|
||||
|
||||
[Test]
|
||||
public void TestExchange_Int32 ()
|
||||
@ -85,7 +83,6 @@ namespace MonoTests.System.Threading
|
||||
Assert.AreEqual(dbl_2, dbl);
|
||||
}
|
||||
|
||||
#if !TARGET_JVM // No support for exchanging two IntPtrs
|
||||
[Test]
|
||||
public void TestExchange_Iptr ()
|
||||
{
|
||||
@ -93,7 +90,6 @@ namespace MonoTests.System.Threading
|
||||
Assert.AreEqual(iptr_1, Interlocked.Exchange(ref iptr, iptr_2));
|
||||
Assert.AreEqual(iptr_2, iptr);
|
||||
}
|
||||
#endif // TARGET_JVM
|
||||
#endif
|
||||
|
||||
[Test]
|
||||
@ -137,7 +133,6 @@ namespace MonoTests.System.Threading
|
||||
Assert.AreEqual(dbl_2, dbl);
|
||||
}
|
||||
|
||||
#if !TARGET_JVM // No support for compare exchanging two IntPtrs
|
||||
[Test]
|
||||
public void TestCompareExchange_Iptr ()
|
||||
{
|
||||
@ -145,7 +140,6 @@ namespace MonoTests.System.Threading
|
||||
Assert.AreEqual(iptr_1, Interlocked.CompareExchange(ref iptr, iptr_2, iptr_1));
|
||||
Assert.AreEqual(iptr_2, iptr);
|
||||
}
|
||||
#endif // TARGET_JVM
|
||||
#endif
|
||||
|
||||
[Test]
|
||||
@ -189,7 +183,6 @@ namespace MonoTests.System.Threading
|
||||
Assert.AreEqual(dbl_1, dbl);
|
||||
}
|
||||
|
||||
#if !TARGET_JVM // No support for compare exchanging two IntPtrs
|
||||
[Test]
|
||||
public void TestCompareExchange_Failed_Iptr ()
|
||||
{
|
||||
@ -197,7 +190,6 @@ namespace MonoTests.System.Threading
|
||||
Assert.AreEqual(iptr_1, Interlocked.CompareExchange(ref iptr, iptr_2, iptr_3));
|
||||
Assert.AreEqual(iptr_1, iptr);
|
||||
}
|
||||
#endif // TARGET_JVM
|
||||
#endif
|
||||
|
||||
[Test]
|
||||
|
@ -156,7 +156,6 @@ namespace MonoTests.System.Threading
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Category("TargetJvmNotSupported")] // IntPtr native handles are not supported for TARGET_JVM.
|
||||
public void TestHandle()
|
||||
{
|
||||
Mutex Sem = new Mutex();
|
||||
|
@ -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