summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorMatt Valentine-House <matt@eightbitraptor.com>2024-07-11 16:10:20 +0100
committerMatt Valentine-House <matt@eightbitraptor.com>2024-07-12 14:43:33 +0100
commit4d77803a66f1bc8559094fd44716fc3bdc16dc5b (patch)
tree8055051ae31d4835a584c9af133579a2af45fc3e /test/ruby
parentf543c68e1ce4abaafd535a4917129e55f89ae8f7 (diff)
Rename full_mark -> rgengc_allow_full_mark
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_gc.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb
index 4ee8a20a3c..f47f1e282a 100644
--- a/test/ruby/test_gc.rb
+++ b/test/ruby/test_gc.rb
@@ -57,7 +57,7 @@ class TestGc < Test::Unit::TestCase
config = GC.config
assert_not_empty(config)
- assert_true(config[:full_mark])
+ assert_true(config[:rgengc_allow_full_mark])
end
def test_gc_config_invalid_args
@@ -69,13 +69,13 @@ class TestGc < Test::Unit::TestCase
def test_gc_config_setting_returns_updated_config_hash
omit "unsupoported platform/GC" unless defined?(GC.config)
- old_value = GC.config[:full_mark]
+ old_value = GC.config[:rgengc_allow_full_mark]
assert_true(old_value)
- new_value = GC.config(full_mark: false)[:full_mark]
+ new_value = GC.config(rgengc_allow_full_mark: false)[:rgengc_allow_full_mark]
assert_false(new_value)
ensure
- GC.config(full_mark: true)
+ GC.config(rgengc_allow_full_mark: true)
GC.start
end
@@ -95,7 +95,7 @@ class TestGc < Test::Unit::TestCase
GC.enable
GC.start
- GC.config(full_mark: false)
+ GC.config(rgengc_allow_full_mark: false)
major_count = GC.stat[:major_gc_count]
minor_count = GC.stat[:minor_gc_count]
@@ -109,7 +109,7 @@ class TestGc < Test::Unit::TestCase
assert_operator(minor_count, :<=, GC.stat[:minor_gc_count])
assert_nil(GC.start)
ensure
- GC.config(full_mark: true)
+ GC.config(rgengc_allow_full_mark: true)
GC.start
end