class RubyMemcheck::Configuration
def get_valgrind_suppression_files(dir)
def get_valgrind_suppression_files(dir) dir = File.expand_path(dir) full_ruby_version = "#{RUBY_ENGINE}-#{RUBY_VERSION}.#{RUBY_PATCHLEVEL}" versions = [full_ruby_version] (0..3).reverse_each { |i| versions << full_ruby_version.split(".")[0, i].join(".") } versions << RUBY_ENGINE versions.map do |version| Dir[File.join(dir, "#{version}.supp")] end.flatten end