summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-15 16:51:34 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-15 16:51:34 +0000
commit0129fc8f58db1403dd987d2adecb35da85de2af3 (patch)
tree840109cac0f256d9060c83b9d49b6be40cca26db /test/ruby
parent01b46043e427f3d78918ba2e110162dbf7108fbb (diff)
Revert r62617 "compile.c: fix load_from_binary"
It breaks Solaris: http://rubyci.s3.amazonaws.com/unstable11s/ruby-trunk/log/20180301T012502Z.diff.html.gz git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_iseq.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/ruby/test_iseq.rb b/test/ruby/test_iseq.rb
index 1a45778cc4..4c811611ba 100644
--- a/test/ruby/test_iseq.rb
+++ b/test/ruby/test_iseq.rb
@@ -398,9 +398,10 @@ class TestISeq < Test::Unit::TestCase
def test_to_binary_with_objects
code = "[]"+100.times.map{|i|"<</#{i}/"}.join
- iseq = RubyVM::InstructionSequence.compile(code)
- bin = assert_nothing_raised {iseq.to_binary}
- iseq2 = RubyVM::InstructionSequence.load_from_binary(bin)
- assert_equal(iseq2.to_a, iseq.to_a)
+ bin = assert_nothing_raised {
+ RubyVM::InstructionSequence.compile(code).to_binary
+ }
+ # load_from_binary doesn't work now
+ assert_instance_of(String, bin)
end
end