ruby-changes:31533
From: akr <ko1@a...>
Date: Sat, 9 Nov 2013 20:53:07 +0900 (JST)
Subject: [ruby-changes:31533] akr:r43612 (trunk): * test/objspace/test_objspace.rb (test_dump_all): Make the test string
akr 2013-11-09 20:53:02 +0900 (Sat, 09 Nov 2013) New Revision: 43612 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43612 Log: * test/objspace/test_objspace.rb (test_dump_all): Make the test string shorter to be an embedded string on 32bit environment as well as 64bit environment. Modified files: trunk/ChangeLog trunk/test/objspace/test_objspace.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 43611) +++ ChangeLog (revision 43612) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Nov 9 20:32:59 2013 Tanaka Akira <akr@f...> + + * test/objspace/test_objspace.rb (test_dump_all): Make the test string + shorter to be an embedded string on 32bit environment as well as + 64bit environment. + Sat Nov 9 15:00:16 2013 Zachary Scott <e@z...> * io.c: [DOC] ARGF.gets may return nil [Bug #9029] patch by znz Index: test/objspace/test_objspace.rb =================================================================== --- test/objspace/test_objspace.rb (revision 43611) +++ test/objspace/test_objspace.rb (revision 43612) @@ -218,12 +218,12 @@ class TestObjSpace < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/objspace/test_objspace.rb#L218 end def test_dump_all - entry = /"value":"this is a test string", "encoding":"UTF-8", "file":"-", "line":4, "method":"dump_my_heap_please"/ + entry = /"value":"TEST STRING", "encoding":"UTF-8", "file":"-", "line":4, "method":"dump_my_heap_please"/ assert_in_out_err(%w[-robjspace], <<-'end;', entry) def dump_my_heap_please ObjectSpace.trace_object_allocations_start GC.start - "this is a test string".force_encoding("UTF-8") + "TEST STRING".force_encoding("UTF-8") ObjectSpace.dump_all(output: :stdout) end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/