From 86744e74db26492056bbe74d82997852e14fea8a Mon Sep 17 00:00:00 2001 From: sg215889 Date: Wed, 15 Jul 2009 05:30:40 -0700 Subject: Build CDC named JARs for CVM in default build, no more specialized build necessary. Fix PointerBuffer allocateDirect() --- test/TestStructAccessorEndian.java | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 test/TestStructAccessorEndian.java (limited to 'test/TestStructAccessorEndian.java') diff --git a/test/TestStructAccessorEndian.java b/test/TestStructAccessorEndian.java deleted file mode 100644 index 9d294ed..0000000 --- a/test/TestStructAccessorEndian.java +++ /dev/null @@ -1,33 +0,0 @@ - -import com.sun.gluegen.runtime.*; -import java.nio.*; - -public class TestStructAccessorEndian { - public static void main (String args[]) { - boolean ok = true; - System.out.println("CPU is : "+ (CPU.isLittleEndian()?"little":"big") + " endian"); - ByteBuffer tst = BufferFactory.newDirectByteBuffer(BufferFactory.SIZEOF_LONG * 3); - StructAccessor acc = new StructAccessor(tst); - acc.setLongAt(0, 0x0123456789ABCDEF); - acc.setLongAt(1, 0x8877665544332211); - acc.setLongAt(2, 0xAFFEDEADBEEFAFFE); - long v = acc.getLongAt(0); - if( 0x0123456789ABCDEF != v ) { - System.out.println("Err[0] shall 0x0123456789ABCDEF, is: "+Long.toHexString(v)); - ok=false; - } - v = acc.getLongAt(1); - if( 0x8877665544332211 != v ) { - System.out.println("Err[1] shall 0x8877665544332211, is: "+Long.toHexString(v)); - ok=false; - } - v = acc.getLongAt(2); - if( 0xAFFEDEADBEEFAFFE != v ) { - System.out.println("Err[2] shall 0xAFFEDEADBEEFAFFE, is: "+Long.toHexString(v)); - ok=false; - } - if(!ok) { - throw new RuntimeException("Long conversion failure"); - } - } -} -- cgit v1.2.3