[jboss-cvs] JBoss Messaging SVN: r7318 - trunk/tests/src/org/jboss/messaging/tests/unit/core/asyncio.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Jun 12 06:57:10 EDT 2009
Author: jmesnil
Date: 2009-06-12 06:57:09 -0400 (Fri, 12 Jun 2009)
New Revision: 7318
Modified:
trunk/tests/src/org/jboss/messaging/tests/unit/core/asyncio/TimedBufferTest.java
Log:
fail explicitly TimedBufferTest if libAIO is not loaded
Modified: trunk/tests/src/org/jboss/messaging/tests/unit/core/asyncio/TimedBufferTest.java
===================================================================
--- trunk/tests/src/org/jboss/messaging/tests/unit/core/asyncio/TimedBufferTest.java 2009-06-12 10:54:50 UTC (rev 7317)
+++ trunk/tests/src/org/jboss/messaging/tests/unit/core/asyncio/TimedBufferTest.java 2009-06-12 10:57:09 UTC (rev 7318)
@@ -29,6 +29,7 @@
import java.util.concurrent.atomic.AtomicInteger;
import org.jboss.messaging.core.asyncio.AIOCallback;
+import org.jboss.messaging.core.asyncio.impl.AsynchronousFileImpl;
import org.jboss.messaging.core.asyncio.impl.TimedBuffer;
import org.jboss.messaging.core.asyncio.impl.TimedBufferObserver;
import org.jboss.messaging.tests.util.UnitTestCase;
@@ -133,6 +134,20 @@
// Protected -----------------------------------------------------
+ @Override
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+
+ if (!AsynchronousFileImpl.isLoaded())
+ {
+ fail(String.format("libAIO is not loaded on %s %s %s",
+ System.getProperty("os.name"),
+ System.getProperty("os.arch"),
+ System.getProperty("os.version")));
+ }
+ }
+
// Private -------------------------------------------------------
// Inner classes -------------------------------------------------
More information about the jboss-cvs-commits
mailing list