module RubyMemcheck::TestTaskReporter

def report_valgrind_errors

def report_valgrind_errors
  if configuration.valgrind_xml_dir
    xml_files = valgrind_xml_files
    parse_valgrind_output(xml_files)
    remove_valgrind_xml_files(xml_files)
    unless errors.empty?
      output_valgrind_errors
      raise VALGRIND_REPORT_MSG
    end
  end
end