Author: mturk
Date: Mon Jun 22 10:49:50 2009
New Revision: 787194

URL: http://svn.apache.org/viewvc?rev=787194&view=rev
Log:
Count int struct alignment as well

Modified:
    
commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestStructure.java

Modified: 
commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestStructure.java
URL: 
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestStructure.java?rev=787194&r1=787193&r2=787194&view=diff
==============================================================================
--- 
commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestStructure.java
 (original)
+++ 
commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestStructure.java
 Mon Jun 22 10:49:50 2009
@@ -147,7 +147,7 @@
     {
         MyUStructure s = new MyUStructure();
         assertEquals("Fields",  4, s.count());
-        assertEquals("Sizeof", 20 + Platform.STRUCT_ALIGN, s.sizeof());
+        assertEquals("Sizeof", 16 + Platform.STRUCT_ALIGN * 2, s.sizeof());
     }
 
     public void testOffset()


Reply via email to