Skip to content

Commit

Permalink
Updates for jnr-ffi api changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vp-of-awesome committed Jul 23, 2011
1 parent bb35f7f commit f26b765
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/org/jruby/ext/posix/FileStatTest.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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()));
}
}
}
Expand Down

0 comments on commit f26b765

Please sign in to comment.