Skip to content

Commit

Permalink
Merge pull request #825 from ahorek/jruby_spec
Browse files Browse the repository at this point in the history
uncomment specs on jruby
  • Loading branch information
larskanis committed Sep 23, 2020
2 parents 10ea06e + a3a81e3 commit f2dcc6b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions spec/ffi/struct_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -364,17 +364,13 @@ def self.int_field_test(type, values)
int_field_test(:int, [ 0, 0x7fffffff, -0x80000000, -1 ])
int_field_test(:uint, [ 0, 0x7fffffff, 0x80000000, 0xffffffff ])
int_field_test(:long_long, [ 0, 0x7fffffffffffffff, -0x8000000000000000, -1 ])
if RUBY_ENGINE != 'jruby' # https://github.com/jnr/jffi/issues/87
int_field_test(:ulong_long, [ 0, 0x7fffffffffffffff, 0x8000000000000000, 0xffffffffffffffff ])
end
int_field_test(:ulong_long, [ 0, 0x7fffffffffffffff, 0x8000000000000000, 0xffffffffffffffff ])
if FFI::Platform::LONG_SIZE == 32
int_field_test(:long, [ 0, 0x7fffffff, -0x80000000, -1 ])
int_field_test(:ulong, [ 0, 0x7fffffff, 0x80000000, 0xffffffff ])
else
int_field_test(:long, [ 0, 0x7fffffffffffffff, -0x8000000000000000, -1 ])
if RUBY_ENGINE != 'jruby' # https://github.com/jruby/jruby/issues/6376
int_field_test(:ulong, [ 0, 0x7fffffffffffffff, 0x8000000000000000, 0xffffffffffffffff ])
end
int_field_test(:ulong, [ 0, 0x7fffffffffffffff, 0x8000000000000000, 0xffffffffffffffff ])
end

it ":float field r/w" do
Expand Down

0 comments on commit f2dcc6b

Please sign in to comment.