Author: mladen.turk(a)jboss.com
Date: 2007-10-29 04:40:35 -0400 (Mon, 29 Oct 2007)
New Revision: 1151
Modified:
trunk/sight/test/org/jboss/sight/MutexTest.java
Log:
tryLock is not supported on all platforms
Modified: trunk/sight/test/org/jboss/sight/MutexTest.java
===================================================================
--- trunk/sight/test/org/jboss/sight/MutexTest.java 2007-10-29 08:24:53 UTC (rev 1150)
+++ trunk/sight/test/org/jboss/sight/MutexTest.java 2007-10-29 08:40:35 UTC (rev 1151)
@@ -67,7 +67,10 @@
/* First one should be locked */
int rv = m.tryLock();
- assertTrue(Status.APR_STATUS_IS_EBUSY(rv));
+ if (rv != Error.APR_ENOTIMPL) {
+ // Must unixes are missing trylock
+ assertTrue(Status.APR_STATUS_IS_EBUSY(rv));
+ }
try {
rv = m.lock();
assertEquals(0, counter);
Show replies by date