summaryrefslogtreecommitdiffstats
path: root/src/junit
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-04-01 01:15:31 +0200
committerSven Gothel <[email protected]>2010-04-01 01:15:31 +0200
commitf96bcce55789d2101d594c433aea95806d4eb05c (patch)
tree50ef20f645529096c2ddcee93e21e52273e5cfde /src/junit
parentfdb14c0c37a9e434b302b7d7dd3c6dbc52c02bb5 (diff)
Fix 32bit masking / tests
Diffstat (limited to 'src/junit')
-rw-r--r--src/junit/com/jogamp/gluegen/test/junit/generation/BaseTest1.java1
-rw-r--r--src/junit/com/jogamp/gluegen/test/junit/runtime/TestPointerBufferEndian.java3
2 files changed, 2 insertions, 2 deletions
diff --git a/src/junit/com/jogamp/gluegen/test/junit/generation/BaseTest1.java b/src/junit/com/jogamp/gluegen/test/junit/generation/BaseTest1.java
index b689e6d..5a5d17c 100644
--- a/src/junit/com/jogamp/gluegen/test/junit/generation/BaseTest1.java
+++ b/src/junit/com/jogamp/gluegen/test/junit/generation/BaseTest1.java
@@ -307,6 +307,7 @@ public class BaseTest1 {
// System.out.println("lb3: "+lb3);
Assert.assertTrue("Wrong result: "+pb.capacity(), BindingTest1.ARRAY_SIZE == pb.capacity());
Assert.assertTrue("Wrong result: "+pb.remaining(), BindingTest1.ARRAY_SIZE == pb.remaining());
+ Assert.assertNotNull(pb.getReferencedBuffer(0));
Assert.assertTrue("Wrong result: "+pb.getReferencedBuffer(0)+" != "+lb2.getBuffer(), pb.getReferencedBuffer(0).equals(lb2.getBuffer()));
PointerBuffer pb2 = binding.arrayTestFoo3PtrPtr(pb);
diff --git a/src/junit/com/jogamp/gluegen/test/junit/runtime/TestPointerBufferEndian.java b/src/junit/com/jogamp/gluegen/test/junit/runtime/TestPointerBufferEndian.java
index a57fd22..afe3405 100644
--- a/src/junit/com/jogamp/gluegen/test/junit/runtime/TestPointerBufferEndian.java
+++ b/src/junit/com/jogamp/gluegen/test/junit/runtime/TestPointerBufferEndian.java
@@ -33,8 +33,7 @@ public class TestPointerBufferEndian {
int i=0;
while(ptr.hasRemaining()) {
- long mask = Platform.is32Bit() ? 0x00000000FFFFFFFFL : 0xFFFFFFFFFFFFFFFFL ;
- long v = ptr.get() & mask;
+ long v = ptr.get() ;
long t = Platform.is32Bit() ? values32Bit[i] : valuesSource[i];
Assert.assertTrue("Value["+i+"] shall be 0x"+Long.toHexString(t)+", is: 0x"+Long.toHexString(v), t == v);
i++;