Fix ReaderWriterLockSlim unit tests.
authorJérémie Laval <jeremie.laval@gmail.com>
Tue, 31 Aug 2010 10:26:22 +0000 (11:26 +0100)
committerJérémie Laval <jeremie.laval@gmail.com>
Tue, 31 Aug 2010 16:01:37 +0000 (17:01 +0100)
commit5d3ce7655dbae1057980b145f0454fff733a744c
tree45792d82199609e34fa67799a867da8a90856b7a
parent15a738f32f661bdb5c15fb17962c727cf21fb6e2
Fix ReaderWriterLockSlim unit tests.

In the latest revision of the framework, ReaderWriterLockSlim is totally fair and thus a call to TryEnterReadLock musn't succeed when writers are waiting to get the lock before them (and when the lock is currently in read mode).
mcs/class/System.Core/Test/System.Threading/ReaderWriterLockSlimTest.cs