[concurrency-interest] How has java.util.concurrent.locks been tested?
Wed, 29 Dec 2004 19:19:43 -0500
> E.g. in testhasQueuedThreads I have found
> which - I suppose - does what I was trying to do with my sequence
Since ReentrantLockTest etc are tests of basic blocking/locking
facilities, we can't use locks themselves to block threads, so must
use the rule that implementations pass if there exists some value for
SHORT_DELAY_MS that succeeds. It is not a bad convention in some other
kinds of tests as well, since it avoids needing intricate synch to set
> Especially when you debug your code this is likely to fail,
> isn't it?
Yes, but these TCK tests aren't especially good for debugging anyway.