summaryrefslogtreecommitdiff
path: root/spec/ffi/memorypointer_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ffi/memorypointer_spec.rb')
-rw-r--r--spec/ffi/memorypointer_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/ffi/memorypointer_spec.rb b/spec/ffi/memorypointer_spec.rb
index 904fdc9..f29e2cb 100644
--- a/spec/ffi/memorypointer_spec.rb
+++ b/spec/ffi/memorypointer_spec.rb
@@ -37,6 +37,8 @@ describe "MemoryPointer#clear" do
expect(ptr.read_long).to eq(0)
end
it "should deny changes when frozen" do
+ skip "not yet supported on TruffleRuby" if RUBY_ENGINE == "truffleruby"
+ skip "not yet supported on JRuby" if RUBY_ENGINE == "jruby"
ptr = MemoryPointer.new(:long).freeze
expect{ ptr.clear }.to raise_error(RuntimeError, /memory write/)
end
@@ -102,6 +104,8 @@ describe "#autorelease" do
end
it "should deny changes when frozen" do
+ skip "not yet supported on TruffleRuby" if RUBY_ENGINE == "truffleruby"
+ skip "not yet supported on JRuby" if RUBY_ENGINE == "jruby"
ptr = MemoryPointer.new(8).freeze
expect{ ptr.autorelease = false }.to raise_error(FrozenError)
end