From c3fdc2cfb0e4b2ede488a36fc224b9e261c23ba5 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 9 Nov 2013 11:53:02 +0000 Subject: [PATCH] * 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ test/objspace/test_objspace.rb | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ce8cb50740..96cb2f7858 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sat Nov 9 20:32:59 2013 Tanaka Akira + + * 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 * io.c: [DOC] ARGF.gets may return nil [Bug #9029] patch by znz diff --git a/test/objspace/test_objspace.rb b/test/objspace/test_objspace.rb index aec4572044..f7f507896e 100644 --- a/test/objspace/test_objspace.rb +++ b/test/objspace/test_objspace.rb @@ -218,12 +218,12 @@ class TestObjSpace < Test::Unit::TestCase 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