summaryrefslogtreecommitdiff
path: root/test/objspace
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-23 07:42:11 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-23 07:42:11 +0900
commitbebe8d13f8e14dffa9d1828f6e9805773dc30518 (patch)
treeefa115972b1b0bbd0ed727694a9fb29cf4e02121 /test/objspace
parent2ad7a7f801c07f18150116b819530840eeefebf8 (diff)
Disable frozen-string-literal to disable deduplication
[Bug #14194]
Diffstat (limited to 'test/objspace')
-rw-r--r--test/objspace/test_objspace.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/objspace/test_objspace.rb b/test/objspace/test_objspace.rb
index 32dc8901d8..983bd59e9a 100644
--- a/test/objspace/test_objspace.rb
+++ b/test/objspace/test_objspace.rb
@@ -112,7 +112,8 @@ class TestObjSpace < Test::Unit::TestCase
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
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