We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f77f9b commit 7e0dac4Copy full SHA for 7e0dac4
test/test_rbconfig.rb
@@ -51,4 +51,19 @@ def test_vendorarchdirs
51
assert_match(/\$\(sitearch|\$\(rubysitearchprefix\)/, val, "#{key} #{bug7823}")
52
end
53
54
+
55
+ def test_limits_and_sizeof_access_in_ractor
56
+ assert_separately(["-W0"], <<~'RUBY')
57
+ r = Ractor.new do
58
+ sizeof_int = RbConfig::SIZEOF["int"]
59
+ fixnum_max = RbConfig::LIMITS["FIXNUM_MAX"]
60
+ [sizeof_int, fixnum_max]
61
+ end
62
63
+ sizeof_int, fixnum_max = r.take
64
65
+ assert_kind_of Integer, sizeof_int, "RbConfig::SIZEOF['int'] should be an Integer"
66
+ assert_kind_of Integer, fixnum_max, "RbConfig::LIMITS['FIXNUM_MAX'] should be an Integer"
67
+ RUBY
68
+ end if defined?(Ractor)
69
0 commit comments