diff options
author | Sven Gothel <[email protected]> | 2011-07-21 11:49:08 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-07-21 11:49:08 +0200 |
commit | 4aa66890176e9c2d8e648d6031c9491c3d625e07 (patch) | |
tree | 68256127a3e68313b127786a8c49eaefa9e7056e /src/junit | |
parent | dc4b259b6651bdc0cec0895bc74e26e504870c8e (diff) |
Fix TestStructAccessorEndian
- StructAccessor uses byteOffset now (since 8b3057585930357bb16546f584d998953b084034)
Fix linux armv7l eabi:
- build.xml arm7 -> armv7
- all tests passes
Adding NativeSizeAlignment-linux-armv7l_eabi from passing test
OK: linux 32/64/armv7l, windows 32/64
Diffstat (limited to 'src/junit')
-rw-r--r-- | src/junit/com/jogamp/common/nio/TestStructAccessorEndian.java | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/junit/com/jogamp/common/nio/TestStructAccessorEndian.java b/src/junit/com/jogamp/common/nio/TestStructAccessorEndian.java index 8a20272..4a9173e 100644 --- a/src/junit/com/jogamp/common/nio/TestStructAccessorEndian.java +++ b/src/junit/com/jogamp/common/nio/TestStructAccessorEndian.java @@ -1,8 +1,9 @@ package com.jogamp.common.nio; -import com.jogamp.common.nio.*; import com.jogamp.common.os.*; +import com.jogamp.gluegen.test.junit.generation.Test1p1JavaEmitter; +import java.io.IOException; import java.nio.*; import org.junit.Assert; @@ -28,13 +29,19 @@ public class TestStructAccessorEndian { int i; for(i=0; i<valuesSource.length; i++) { - acc.setLongAt(i, valuesSource[i]); + acc.setLongAt(i*8, valuesSource[i]); } for(i=0; i<valuesSource.length; i++) { - long v = acc.getLongAt(i); + long v = acc.getLongAt(i*8); long t = valuesSource[i]; Assert.assertTrue("Value["+i+"] shall be 0x"+Long.toHexString(t)+", is: 0x"+Long.toHexString(v), t == v); } } + + public static void main(String args[]) throws IOException { + String tstname = TestStructAccessorEndian.class.getName(); + org.junit.runner.JUnitCore.main(tstname); + } + } |