summaryrefslogtreecommitdiff
path: root/test/ruby/test_gc.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-05 08:19:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-05 08:19:44 +0000
commit69be3620302aab57c43014aca08629c9d7b7ce44 (patch)
tree902d3b05c2730f2ed0b3059bcc6eefd3f284984b /test/ruby/test_gc.rb
parentbca963220a97486ce50476013838d4339abd077c (diff)
test_gc.rb: read binary
* test/ruby/test_gc.rb (test_exception_in_finalizer): read in binary encoding to get rid of invalid byte sequence exception. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_gc.rb')
-rw-r--r--test/ruby/test_gc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb
index e9e4bdc75f..fd858f2c69 100644
--- a/test/ruby/test_gc.rb
+++ b/test/ruby/test_gc.rb
@@ -320,7 +320,7 @@ class TestGc < Test::Unit::TestCase
def test_exception_in_finalizer
bug9168 = '[ruby-core:58652] [Bug #9168]'
- assert_normal_exit(<<-'end;', bug9168)
+ assert_normal_exit(<<-'end;', bug9168, encoding: Encoding::ASCII_8BIT)
raise_proc = proc {raise}
10000.times do
ObjectSpace.define_finalizer(Object.new, raise_proc)