You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
parent
a569aebcfd
commit
e79aa3c0ed
@ -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 ();
|
||||
|
Reference in New Issue
Block a user