Imported Upstream version 3.10.0

Former-commit-id: 172c8e3c300b39d5785c7a3e8dfb08ebdbc1a99b
This commit is contained in:
Jo Shields
2014-10-04 11:27:48 +01:00
parent fe777c5c82
commit 8b9b85e7f5
970 changed files with 20242 additions and 31308 deletions

View File

@ -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]