You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ch...@apache.org on 2009/11/17 20:55:40 UTC

svn commit: r881467 - /activemq/sandbox/activemq-apollo/activemq-syscall/src/test/java/org/apache/activemq/syscall/AIOTest.java

Author: chirino
Date: Tue Nov 17 19:55:39 2009
New Revision: 881467

URL: http://svn.apache.org/viewvc?rev=881467&view=rev
Log:
Disable the AIO test on on platforms that AIO is not supported on

Modified:
    activemq/sandbox/activemq-apollo/activemq-syscall/src/test/java/org/apache/activemq/syscall/AIOTest.java

Modified: activemq/sandbox/activemq-apollo/activemq-syscall/src/test/java/org/apache/activemq/syscall/AIOTest.java
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo/activemq-syscall/src/test/java/org/apache/activemq/syscall/AIOTest.java?rev=881467&r1=881466&r2=881467&view=diff
==============================================================================
--- activemq/sandbox/activemq-apollo/activemq-syscall/src/test/java/org/apache/activemq/syscall/AIOTest.java (original)
+++ activemq/sandbox/activemq-apollo/activemq-syscall/src/test/java/org/apache/activemq/syscall/AIOTest.java Tue Nov 17 19:55:39 2009
@@ -1,5 +1,13 @@
 package org.apache.activemq.syscall;
 
+import static org.apache.activemq.syscall.AIO.*;
+import static org.apache.activemq.syscall.AIOTest.NativeBuffer.*;
+import static org.apache.activemq.syscall.CLibrary.*;
+import static org.apache.activemq.syscall.IO.*;
+import static org.hamcrest.CoreMatchers.*;
+import static org.junit.Assert.*;
+import static org.junit.Assume.*;
+
 import java.io.ByteArrayOutputStream;
 import java.io.File;
 import java.io.FileInputStream;
@@ -10,16 +18,10 @@
 import org.apache.activemq.syscall.AIO.aiocb;
 import org.junit.Test;
 
-import static org.apache.activemq.syscall.AIO.*;
-import static org.apache.activemq.syscall.AIOTest.NativeBuffer.*;
-import static org.apache.activemq.syscall.CLibrary.*;
-import static org.apache.activemq.syscall.IO.*;
-import static org.junit.Assert.*;
-
 public class AIOTest {
     
     public static final class NativeBuffer {
-
+    	
         long pointer;
         int offset;
         long length;
@@ -57,6 +59,8 @@
     
     @Test
     public void writeThenRead() throws IOException, InterruptedException {
+    	assumeThat(AIO.SUPPORTED, is(true));
+    	 
         File file = new File("target/test-data/test.data");
         file.getParentFile().mkdirs();