activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r881467 - /activemq/sandbox/activemq-apollo/activemq-syscall/src/test/java/org/apache/activemq/syscall/AIOTest.java
Date Tue, 17 Nov 2009 19:55:40 GMT
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();
 



Mime
View raw message