Imported Upstream version 4.6.0.125

Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2016-08-03 10:59:49 +00:00
parent a569aebcfd
commit e79aa3c0ed
17047 changed files with 3137615 additions and 392334 deletions

View File

@@ -1,60 +0,0 @@
2009-06-25 Zoltan Varga <vargaz@gmail.com>
* *.cs: Convert all tests to new-style nunit classes/methods.
2008-06-14 Zoltan Varga <vargaz@gmail.com>
* SynchronizationAttributeTest.cs: Reenable some tests which seem to
work now.
2005-02-21 Nick Drochak <ndrochak@ieee.org>
* SoapServicesTest.cs: OK, i don't know how to handle multi-registrations.
Just disable the whole test on Mono for now until an expert can help out.
2005-02-20 Nick Drochak <ndrochak@ieee.org>
* SoapServicesTest.cs: Make test work on cygwin again. Order in which
tests are run can make a difference.
2005-01-31 Nick Drochak <ndrochak@ieee.org>
* SoapServicesTest.cs: Pull out asserts that do not work on mono.
* SynchronizationAttributeTest.cs: Run test on mono, but not .NET.
2004-04-06 Lluis Sanchez Gual <lluis@ximian.com>
* SynchronizationAttributeTest.cs: Added test for Monitor.Exit.
2004-01-08 Lluis Sanchez Gual <lluis@ximian.com>
* SynchronizationAttributeTest.cs: Improved test.
2003-11-26 Lluis Sanchez Gual <lluis@ximian.com>
* SoapServicesTest.cs: New test added.
2003-11-19 Lluis Sanchez Gual <lluis@ximian.com>
* ContextTest.cs, SynchronizationAttributeTest.cs: New tests added.
2003-06-19 Nick Drochak <ndrochak@gol.com>
* RemotingServicesTest.cs: Lazy fix/workaround for "can't reuse
channel" errors. Tests now pass.
* RemotingConfigurationTest.cs: Don't rely on test order, and wrap some
.NET 1.1 stuff.
2003-06-18 Nick Drochak <ndrochak@gol.com>
* RemotingServicesTest.cs: Change to nunit v2 format.
2003-03-11 Jean-Marc Andre <jean-marc.andre@polymtl.ca>
* RemotingConfigurationTest.cs: New unit test added
2003-03-03 Jean-Marc Andre <jean-marc.andre@polymtl.ca>
* RemotingServicesTest.cs: New unit test added

View File

@@ -220,6 +220,7 @@ namespace MonoTests.System.Runtime.Remoting
public void TestLocked1 ()
{
sincob.Lock (false);
Thread tr = new Thread (new ThreadStart (FirstSyncThread));
tr.Start ();
Thread.Sleep (200);
@@ -331,6 +332,21 @@ namespace MonoTests.System.Runtime.Remoting
Assert.IsTrue (!otResult, "Concurrency detected in CallbackThread");
}
[Test]
public void TestSynchronizationReleasedOnMultipleAcquire ()
{
otResult = notreentrant.TestCallback ();
Thread tr = new Thread (new ThreadStart (CallbackThread));
tr.Start();
bool terminated = tr.Join(2000);
Assert.IsTrue(terminated, "Thread didn't get lock of context bound object.");
Assert.IsTrue (!otResult, "Concurrency detected in CallbackThread");
}
void CallbackThread ()
{
otResult = notreentrant.TestCallback ();