Permalink
Browse files

Updates for jnr-ffi api changes

  • Loading branch information...
1 parent bb35f7f commit f26b765b33a6a8e619e35900eb17fd6a2c9a528a Wayne Meissner committed Jul 23, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 test/org/jruby/ext/posix/FileStatTest.java
@@ -1,8 +1,9 @@
package org.jruby.ext.posix;
-import jnr.ffi.struct.StructUtil;
import java.io.File;
+
+import jnr.ffi.Struct;
import org.jruby.ext.posix.util.Platform;
import org.junit.After;
import org.junit.AfterClass;
@@ -50,9 +51,9 @@ public void tearDown() {
@Test public void structStatSize() throws Throwable {
if (Platform.IS_SOLARIS) {
if (Platform.IS_32_BIT) {
- assertEquals("struct size is wrong", 144, StructUtil.getSize(new SolarisHeapFileStat((SolarisPOSIX) posix)));
+ assertEquals("struct size is wrong", 144, Struct.size(new SolarisHeapFileStat((SolarisPOSIX) posix)));
} else {
- assertEquals("struct size is wrong", 128, StructUtil.getSize(new Solaris64FileStat()));
+ assertEquals("struct size is wrong", 128, Struct.size(new Solaris64FileStat()));
}
}
}

0 comments on commit f26b765

Please sign in to comment.