ruby-changes:56203
From: Nobuyoshi <ko1@a...>
Date: Sun, 23 Jun 2019 07:44:40 +0900 (JST)
Subject: [ruby-changes:56203] Nobuyoshi Nakada: bebe8d13f8 (trunk): Disable frozen-string-literal to disable deduplication
https://git.ruby-lang.org/ruby.git/commit/?id=bebe8d13f8 From bebe8d13f8e14dffa9d1828f6e9805773dc30518 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 23 Jun 2019 07:42:11 +0900 Subject: Disable frozen-string-literal to disable deduplication [Bug #14194] diff --git a/test/objspace/test_objspace.rb b/test/objspace/test_objspace.rb index 32dc890..983bd59 100644 --- a/test/objspace/test_objspace.rb +++ b/test/objspace/test_objspace.rb @@ -112,7 +112,8 @@ class TestObjSpace < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/objspace/test_objspace.rb#L112 end def test_reachable_objects_from - assert_separately %w[--disable-gem -robjspace], "#{<<-"begin;"}\n#{<<-'end;'}" + opts = %w[--disable-gem --disable=frozen-string-literal -robjspace] + assert_separately opts, "#{<<-"begin;"}\n#{<<-'end;'}" begin; assert_equal(nil, ObjectSpace.reachable_objects_from(nil)) assert_equal([Array, 'a', 'b', 'c'], ObjectSpace.reachable_objects_from(['a', 'b', 'c'])) @@ -378,8 +379,9 @@ class TestObjSpace < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/objspace/test_objspace.rb#L379 def test_dump_all entry = /"bytesize":11, "value":"TEST STRING", "encoding":"UTF-8", "file":"-", "line":4, "method":"dump_my_heap_please", "generation":/ + opts = %w[--disable-gem --disable=frozen-string-literal -robjspace] - assert_in_out_err(%w[-robjspace], "#{<<-"begin;"}#{<<-'end;'}") do |output, error| + assert_in_out_err(opts, "#{<<-"begin;"}#{<<-'end;'}") do |output, error| begin; def dump_my_heap_please ObjectSpace.trace_object_allocations_start -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/