summaryrefslogtreecommitdiff
path: root/tool/lib/test
diff options
context:
space:
mode:
authorAlan Wu <[email protected]>2024-06-14 03:05:38 -0400
committerGitHub <[email protected]>2024-06-14 00:05:38 -0700
commit0dcb0fdfcd48b63ae000c8216a1e7b1c508e0ef2 (patch)
tree74c22731730f8f0e966a3e13f333c832c0f0450c /tool/lib/test
parent8ddb4de0acedaa10525c3e8549746fc2fb10b002 (diff)
Enable LeakChecker for RJIT previously disabled for MJIT (#10998)
RJIT doesn't spawn subprocesses so there should now be no need to special case it.
Diffstat (limited to 'tool/lib/test')
-rw-r--r--tool/lib/test/unit.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/tool/lib/test/unit.rb b/tool/lib/test/unit.rb
index 2b0856b822..5e5b34f5b6 100644
--- a/tool/lib/test/unit.rb
+++ b/tool/lib/test/unit.rb
@@ -1761,9 +1761,7 @@ module Test
puts if @verbose
$stdout.flush
- unless defined?(RubyVM::RJIT) && RubyVM::RJIT.enabled? # compiler process is wrongly considered as leak
- leakchecker.check("#{inst.class}\##{inst.__name__}")
- end
+ leakchecker.check("#{inst.class}\##{inst.__name__}")
_end_method(inst)