Skip to content

Commit 986fd32

Browse files
luke-gruberpeterzhu2118
authored andcommitted
test_all_ractors: ignore some more tests (pend)
1 parent a13cf27 commit 986fd32

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

test/ruby/test_optimization.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ def self.tailcall(klass, src, file = nil, path = nil, line = nil, tailcall: true
397397
end
398398

399399
def tailcall(*args)
400+
pend "tailcall" if non_main_ractor?
400401
self.class.tailcall(singleton_class, *args)
401402
end
402403

tool/lib/core_assertions.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ def assert_valid_syntax(code, *args, **opt)
274274
end
275275

276276
def assert_normal_exit(testsrc, message = '', child_env: nil, **opt)
277+
pend "#{__method__}" if non_main_ractor?
277278
assert_valid_syntax(testsrc, caller_locations(1, 1)[0])
278279
if child_env
279280
child_env = [child_env]

tool/lib/envutil.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,10 +482,12 @@ def self.gc_stress_to_class?
482482

483483
if defined?(RbConfig)
484484
module RbConfig
485-
@ruby = EnvUtil.rubybin
485+
RUBY__ = EnvUtil.rubybin.freeze
486486
class << self
487487
undef ruby if method_defined?(:ruby)
488-
attr_reader :ruby
488+
def ruby
489+
RUBY__
490+
end
489491
end
490492
dir = File.dirname(ruby)
491493
CONFIG['bindir'] = dir

0 commit comments

Comments
 (0)