File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 3
3
4
4
require "optparse"
5
5
require "rbconfig"
6
- require "leakchecker" unless defined? ( :: TruffleRuby )
6
+ # require "leakchecker" # TruffleRuby: LeakChecker removed to avoid interferences
7
7
8
8
##
9
9
# Minimal (mostly drop-in) replacement for test-unit.
@@ -939,7 +939,7 @@ def _run_suite suite, type
939
939
filter === m || filter === "#{ suite } ##{ m } "
940
940
}
941
941
942
- leakchecker = LeakChecker . new unless defined? ( :: TruffleRuby )
942
+ # leakchecker = LeakChecker.new # TruffleRuby: LeakChecker removed to avoid interferences
943
943
944
944
continuation = proc do
945
945
assertions = filtered_test_methods . map { |method |
@@ -957,7 +957,7 @@ def _run_suite suite, type
957
957
$stdout. flush
958
958
959
959
unless defined? ( RubyVM ::MJIT ) && RubyVM ::MJIT . enabled? # compiler process is wrongly considered as leak
960
- leakchecker . check ( "#{ inst . class } \# #{ inst . __name__ } " ) unless defined? ( :: TruffleRuby )
960
+ # leakchecker.check("#{inst.class}\##{inst.__name__}") # TruffleRuby: LeakChecker removed to avoid interferences
961
961
end
962
962
963
963
inst . _assertions
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
require 'rbconfig'
3
3
4
- if defined? ( ::TruffleRuby )
5
- $LOAD_PATH. unshift File . expand_path ( "lib" , __dir__ )
6
- else
7
- $LOAD_PATH. unshift File . expand_path ( "../lib" , __dir__ )
8
- end
4
+ # TruffleRuby: adapt test lib path
5
+ $LOAD_PATH. unshift File . expand_path ( "lib" , __dir__ )
6
+ # $LOAD_PATH.unshift File.expand_path("../lib", __dir__)
9
7
10
8
require 'test/unit'
11
9
You can’t perform that action at this time.
0 commit comments