Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ffi/ffi
Browse files Browse the repository at this point in the history
  • Loading branch information
larskanis committed Dec 10, 2020
2 parents f86fc3d + efeb785 commit 2918fdf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion spec/ffi/pointer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ def to_ptr
end

it "access beyond bounds should raise IndexError" do
skip "not yet supported on TruffleRuby" if RUBY_ENGINE == "truffleruby"
expect { @mptr.slice(4, 4).get_int(4) }.to raise_error(IndexError)
end
end
Expand Down
2 changes: 0 additions & 2 deletions spec/ffi/rbx/memory_pointer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,11 @@
end

it "raises an error if you try putting a long into a pointer of size 1" do
skip "not yet supported on TruffleRuby" if RUBY_ENGINE == "truffleruby"
m = FFI::MemoryPointer.new(1)
expect { m.write_long(10) }.to raise_error(IndexError)
end

it "raises an error if you try putting an int into a pointer of size 1" do
skip "not yet supported on TruffleRuby" if RUBY_ENGINE == "truffleruby"
m = FFI::MemoryPointer.new(1)
expect { m.write_int(10) }.to raise_error(IndexError)
end
Expand Down

0 comments on commit 2918fdf

Please sign in to comment.