You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/06/22 12:46:19 UTC
svn commit: r787193 -
/commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestStructure.java
Author: mturk
Date: Mon Jun 22 10:46:18 2009
New Revision: 787193
URL: http://svn.apache.org/viewvc?rev=787193&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=787193&r1=787192&r2=787193&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:46:18 2009
@@ -134,7 +134,7 @@
My2Structure s = new My2Structure();
assertEquals("Fields", 3, s.count());
if (Pointer.SIZEOF == 4) {
- assertEquals("Sizeof", 12, s.sizeof());
+ assertEquals("Sizeof", 8 + Platform.STRUCT_ALIGN, s.sizeof());
}
else {
assertEquals("Sizeof", 24, s.sizeof());