[前][次][番号順一覧][スレッド一覧]

ruby-changes:37429

From: nobu <ko1@a...>
Date: Thu, 5 Feb 2015 17:19:59 +0900 (JST)
Subject: [ruby-changes:37429] nobu:r49510 (trunk): test_gc.rb: read binary

nobu	2015-02-05 17:19:44 +0900 (Thu, 05 Feb 2015)

  New Revision: 49510

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49510

  Log:
    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.

  Modified files:
    trunk/test/ruby/test_gc.rb
Index: test/ruby/test_gc.rb
===================================================================
--- test/ruby/test_gc.rb	(revision 49509)
+++ test/ruby/test_gc.rb	(revision 49510)
@@ -320,7 +320,7 @@ class TestGc < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_gc.rb#L320
 
   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)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]