commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r787193 - /commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestStructure.java
Date Mon, 22 Jun 2009 10:46:19 GMT
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());



Mime
View raw message