From 4de9c7a6038417d3be93bc6b85645676a0cafa0f Mon Sep 17 00:00:00 2001
From: shixuantong <shixuantong1@huawei.com>
Date: Wed, 3 Jul 2024 02:45:03 +0800
Subject: [PATCH] add require_relative "helper" to uninitialized constant
 REXMLTests::JaxenTester::Helper

/home/lkp/rpmbuild/BUILD/ruby-2.5.8/test/rexml/test_jaxen.rb:11:in `<class:JaxenTester>': uninitialized constant REXMLTests::JaxenTester::Helper (NameError)
from /home/lkp/rpmbuild/BUILD/ruby-2.5.8/test/rexml/test_jaxen.rb:10:in `<module:REXMLTests>'
from /home/lkp/rpmbuild/BUILD/ruby-2.5.8/test/rexml/test_jaxen.rb:9:in `<top (required)>'
from /home/lkp/rpmbuild/BUILD/ruby-2.5.8/lib/rubygems/core_ext/kernel_require.rb:59:in `require'
from /home/lkp/rpmbuild/BUILD/ruby-2.5.8/lib/rubygems/core_ext/kernel_require.rb:59:in `require'
from /home/lkp/rpmbuild/BUILD/ruby-2.5.8/test/lib/test/unit.rb:949:in `block in non_options'
from /home/lkp/rpmbuild/BUILD/ruby-2.5.8/test/lib/test/unit.rb:943:in `each'
from /home/lkp/rpmbuild/BUILD/ruby-2.5.8/test/lib/test/unit.rb:943:in `non_options'
from /home/lkp/rpmbuild/BUILD/ruby-2.5.8/test/lib/test/unit.rb:64:in `process_args'
from /home/lkp/rpmbuild/BUILD/ruby-2.5.8/test/lib/test/unit.rb:130:in `process_args'
from /home/lkp/rpmbuild/BUILD/ruby-2.5.8/test/lib/test/unit.rb:1123:in `process_args'
from /home/lkp/rpmbuild/BUILD/ruby-2.5.8/test/lib/test/unit.rb:1128:in `run'
from /home/lkp/rpmbuild/BUILD/ruby-2.5.8/test/lib/test/unit.rb:1135:in `run'
from ./test/runner.rb:33:in `<main>'
make: *** [uncommon.mk:698: yes-test-almost] Error 1
---
 test/rexml/formatter/test_default.rb               | 1 +
 test/rexml/functions/test_base.rb                  | 1 +
 test/rexml/functions/test_boolean.rb               | 1 +
 test/rexml/functions/test_local_name.rb            | 1 +
 test/rexml/functions/test_number.rb                | 1 +
 test/rexml/parse/test_document_type_declaration.rb | 1 +
 test/rexml/parse/test_element.rb                   | 1 +
 test/rexml/parse/test_entity_declaration.rb        | 1 +
 test/rexml/parse/test_notation_declaration.rb      | 1 +
 test/rexml/parse/test_processing_instruction.rb    | 1 +
 test/rexml/parser/test_sax2.rb                     | 1 +
 test/rexml/parser/test_stream.rb                   | 1 +
 test/rexml/parser/test_tree.rb                     | 1 +
 test/rexml/parser/test_ultra_light.rb              | 1 +
 test/rexml/parser/test_xpath.rb                    | 1 +
 test/rexml/test_attribute.rb                       | 1 +
 test/rexml/test_attributes.rb                      | 1 +
 test/rexml/test_attributes_mixin.rb                | 1 +
 test/rexml/test_changing_encoding.rb               | 1 +
 test/rexml/test_comment.rb                         | 1 +
 test/rexml/test_contrib.rb                         | 1 +
 test/rexml/test_core.rb                            | 1 +
 test/rexml/test_doctype.rb                         | 1 +
 test/rexml/test_document.rb                        | 1 +
 test/rexml/test_element.rb                         | 1 +
 test/rexml/test_elements.rb                        | 1 +
 test/rexml/test_encoding.rb                        | 1 +
 test/rexml/test_entity.rb                          | 1 +
 test/rexml/test_instruction.rb                     | 1 +
 test/rexml/test_jaxen.rb                           | 1 +
 test/rexml/test_light.rb                           | 1 +
 test/rexml/test_lightparser.rb                     | 1 +
 test/rexml/test_listener.rb                        | 1 +
 test/rexml/test_martin_fowler.rb                   | 1 +
 test/rexml/test_namespace.rb                       | 1 +
 test/rexml/test_order.rb                           | 1 +
 test/rexml/test_preceding_sibling.rb               | 1 +
 test/rexml/test_pullparser.rb                      | 1 +
 test/rexml/test_rexml_issuezilla.rb                | 1 +
 test/rexml/test_sax.rb                             | 1 +
 test/rexml/test_stream.rb                          | 1 +
 test/rexml/test_text.rb                            | 1 +
 test/rexml/test_ticket_80.rb                       | 2 ++
 test/rexml/test_validation_rng.rb                  | 1 +
 test/rexml/test_xml_declaration.rb                 | 2 ++
 test/rexml/xpath/test_attribute.rb                 | 1 +
 test/rexml/xpath/test_axis_preceding_sibling.rb    | 1 +
 test/rexml/xpath/test_axis_self.rb                 | 1 +
 test/rexml/xpath/test_base.rb                      | 1 +
 test/rexml/xpath/test_compare.rb                   | 1 +
 test/rexml/xpath/test_node.rb                      | 1 +
 test/rexml/xpath/test_predicate.rb                 | 1 +
 test/rexml/xpath/test_text.rb                      | 1 +
 53 files changed, 55 insertions(+)

diff --git a/test/rexml/formatter/test_default.rb b/test/rexml/formatter/test_default.rb
index aa403db..d15aa81 100644
--- a/test/rexml/formatter/test_default.rb
+++ b/test/rexml/formatter/test_default.rb
@@ -1,3 +1,4 @@
+require_relative "helper"
 module REXMLTests
   class DefaultFormatterTest < Test::Unit::TestCase
     def format(node)
diff --git a/test/rexml/functions/test_base.rb b/test/rexml/functions/test_base.rb
index daa3815..030eb77 100644
--- a/test/rexml/functions/test_base.rb
+++ b/test/rexml/functions/test_base.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 require "test/unit/testcase"
+require_relative "helper"
 
 require "rexml/document"
 
diff --git a/test/rexml/functions/test_boolean.rb b/test/rexml/functions/test_boolean.rb
index b3e2117..b3869c2 100644
--- a/test/rexml/functions/test_boolean.rb
+++ b/test/rexml/functions/test_boolean.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 require "test/unit"
 require "rexml/document"
 require "rexml/functions"
diff --git a/test/rexml/functions/test_local_name.rb b/test/rexml/functions/test_local_name.rb
index 97c9e74..769685e 100644
--- a/test/rexml/functions/test_local_name.rb
+++ b/test/rexml/functions/test_local_name.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 require "test/unit"
 require "rexml/document"
 require "rexml/functions"
diff --git a/test/rexml/functions/test_number.rb b/test/rexml/functions/test_number.rb
index 16e6357..f888919 100644
--- a/test/rexml/functions/test_number.rb
+++ b/test/rexml/functions/test_number.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 require "test/unit"
 require "rexml/document"
 require "rexml/functions"
diff --git a/test/rexml/parse/test_document_type_declaration.rb b/test/rexml/parse/test_document_type_declaration.rb
index 8faa0b7..a3cb10f 100644
--- a/test/rexml/parse/test_document_type_declaration.rb
+++ b/test/rexml/parse/test_document_type_declaration.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 require "test/unit"
+require_relative "helper"
 require "rexml/document"
 
 module REXMLTests
diff --git a/test/rexml/parse/test_element.rb b/test/rexml/parse/test_element.rb
index 14d0703..c98c418 100644
--- a/test/rexml/parse/test_element.rb
+++ b/test/rexml/parse/test_element.rb
@@ -1,3 +1,4 @@
+require_relative "helper"
 require "test/unit"
 require "rexml/document"
 
diff --git a/test/rexml/parse/test_entity_declaration.rb b/test/rexml/parse/test_entity_declaration.rb
index e15deec..88b3e62 100644
--- a/test/rexml/parse/test_entity_declaration.rb
+++ b/test/rexml/parse/test_entity_declaration.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 require 'test/unit'
+require_relative "helper"
 require 'rexml/document'
 
 module REXMLTests
diff --git a/test/rexml/parse/test_notation_declaration.rb b/test/rexml/parse/test_notation_declaration.rb
index 9e81b6a..4c4d06d 100644
--- a/test/rexml/parse/test_notation_declaration.rb
+++ b/test/rexml/parse/test_notation_declaration.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 require 'test/unit'
+require_relative "helper"
 require 'rexml/document'
 
 module REXMLTests
diff --git a/test/rexml/parse/test_processing_instruction.rb b/test/rexml/parse/test_processing_instruction.rb
index f0c0c24..fc1c310 100644
--- a/test/rexml/parse/test_processing_instruction.rb
+++ b/test/rexml/parse/test_processing_instruction.rb
@@ -1,3 +1,4 @@
+require_relative "helper"
 require "test/unit"
 require "rexml/document"
 
diff --git a/test/rexml/parser/test_sax2.rb b/test/rexml/parser/test_sax2.rb
index 91d135f..45999a2 100644
--- a/test/rexml/parser/test_sax2.rb
+++ b/test/rexml/parser/test_sax2.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 require "test/unit"
+require_relative "helper"
 require "rexml/parsers/sax2parser"
 require "rexml/sax2listener"
 
diff --git a/test/rexml/parser/test_stream.rb b/test/rexml/parser/test_stream.rb
index c315833..ae6aa1b 100644
--- a/test/rexml/parser/test_stream.rb
+++ b/test/rexml/parser/test_stream.rb
@@ -1,3 +1,4 @@
+require_relative "helper"
 require "test/unit"
 require "rexml/document"
 require "rexml/streamlistener"
diff --git a/test/rexml/parser/test_tree.rb b/test/rexml/parser/test_tree.rb
index 8a5d9d1..80dfa15 100644
--- a/test/rexml/parser/test_tree.rb
+++ b/test/rexml/parser/test_tree.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 require "test/unit"
+require_relative "helper"
 require "rexml/document"
 require "rexml/parsers/treeparser"
 
diff --git a/test/rexml/parser/test_ultra_light.rb b/test/rexml/parser/test_ultra_light.rb
index 44fd1d1..11ec5b8 100644
--- a/test/rexml/parser/test_ultra_light.rb
+++ b/test/rexml/parser/test_ultra_light.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 require "test/unit"
+require_relative "helper"
 require "rexml/parsers/ultralightparser"
 
 module REXMLTests
diff --git a/test/rexml/parser/test_xpath.rb b/test/rexml/parser/test_xpath.rb
index 9143d25..2c02a71 100644
--- a/test/rexml/parser/test_xpath.rb
+++ b/test/rexml/parser/test_xpath.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 require "test/unit"
 require "rexml/parsers/xpathparser"
 
diff --git a/test/rexml/test_attribute.rb b/test/rexml/test_attribute.rb
index b66e462..b662c41 100644
--- a/test/rexml/test_attribute.rb
+++ b/test/rexml/test_attribute.rb
@@ -1,3 +1,4 @@
+require_relative "helper"
 module REXMLTests
   class AttributeTest < Test::Unit::TestCase
     def test_empty_prefix
diff --git a/test/rexml/test_attributes.rb b/test/rexml/test_attributes.rb
index 09fde44..d609f9b 100644
--- a/test/rexml/test_attributes.rb
+++ b/test/rexml/test_attributes.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 module REXMLTests
   class AttributesTester < Test::Unit::TestCase
     include REXML
diff --git a/test/rexml/test_attributes_mixin.rb b/test/rexml/test_attributes_mixin.rb
index 2b9108c..1c097d5 100644
--- a/test/rexml/test_attributes_mixin.rb
+++ b/test/rexml/test_attributes_mixin.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 module REXMLTests
   class TestAttributes < Test::Unit::TestCase
     def setup
diff --git a/test/rexml/test_changing_encoding.rb b/test/rexml/test_changing_encoding.rb
index a2dc072..0c6aaee 100644
--- a/test/rexml/test_changing_encoding.rb
+++ b/test/rexml/test_changing_encoding.rb
@@ -1,5 +1,6 @@
 # -*- coding: utf-8 -*-
 # frozen_string_literal: false
+require_relative "helper"
 
 require 'rexml/encoding'
 
diff --git a/test/rexml/test_comment.rb b/test/rexml/test_comment.rb
index f6f4d80..38bc51c 100644
--- a/test/rexml/test_comment.rb
+++ b/test/rexml/test_comment.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 module REXMLTests
   class CommentTester < Test::Unit::TestCase
     # Bug #5278
diff --git a/test/rexml/test_contrib.rb b/test/rexml/test_contrib.rb
index 23ee35b..081bc27 100644
--- a/test/rexml/test_contrib.rb
+++ b/test/rexml/test_contrib.rb
@@ -1,5 +1,6 @@
 # coding: binary
 # frozen_string_literal: false
+require_relative "helper"
 
 require "rexml/parseexception"
 require "rexml/formatters/default"
diff --git a/test/rexml/test_core.rb b/test/rexml/test_core.rb
index 44e2e7e..ea0a0d3 100644
--- a/test/rexml/test_core.rb
+++ b/test/rexml/test_core.rb
@@ -1,5 +1,6 @@
 # -*- coding: utf-8 -*-
 # frozen_string_literal: false
+require_relative "helper"
 
 require "rexml/document"
 require "rexml/parseexception"
diff --git a/test/rexml/test_doctype.rb b/test/rexml/test_doctype.rb
index b20d30a..277cb0c 100644
--- a/test/rexml/test_doctype.rb
+++ b/test/rexml/test_doctype.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 module REXMLTests
   class TestDocTypeAccessor < Test::Unit::TestCase
     def setup
diff --git a/test/rexml/test_document.rb b/test/rexml/test_document.rb
index f96bfd5..f9889c4 100644
--- a/test/rexml/test_document.rb
+++ b/test/rexml/test_document.rb
@@ -1,5 +1,6 @@
 # -*- coding: utf-8 -*-
 # frozen_string_literal: false
+require_relative "helper"
 
 require 'core_assertions'
 
diff --git a/test/rexml/test_element.rb b/test/rexml/test_element.rb
index 2021689..7eb4904 100644
--- a/test/rexml/test_element.rb
+++ b/test/rexml/test_element.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 module REXMLTests
   class ElementTester < Test::Unit::TestCase
     def test_array_reference_string
diff --git a/test/rexml/test_elements.rb b/test/rexml/test_elements.rb
index c0f1b22..520bb81 100644
--- a/test/rexml/test_elements.rb
+++ b/test/rexml/test_elements.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 module REXMLTests
   class ElementsTester < Test::Unit::TestCase
     include REXML
diff --git a/test/rexml/test_encoding.rb b/test/rexml/test_encoding.rb
index 6887ffb..c12038d 100644
--- a/test/rexml/test_encoding.rb
+++ b/test/rexml/test_encoding.rb
@@ -1,5 +1,6 @@
 # coding: utf-8
 # frozen_string_literal: false
+require_relative "helper"
 
 require 'rexml/source'
 require 'rexml/document'
diff --git a/test/rexml/test_entity.rb b/test/rexml/test_entity.rb
index a2b262f..62429cb 100644
--- a/test/rexml/test_entity.rb
+++ b/test/rexml/test_entity.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 require 'rexml/entity'
 require 'rexml/source'
 
diff --git a/test/rexml/test_instruction.rb b/test/rexml/test_instruction.rb
index 5451e36..78f240f 100644
--- a/test/rexml/test_instruction.rb
+++ b/test/rexml/test_instruction.rb
@@ -1,3 +1,4 @@
+require_relative "helper"
 module REXMLTests
   class InstructionTest < Test::Unit::TestCase
     def test_target_nil
diff --git a/test/rexml/test_jaxen.rb b/test/rexml/test_jaxen.rb
index 6038e88..53e91bc 100644
--- a/test/rexml/test_jaxen.rb
+++ b/test/rexml/test_jaxen.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 require "rexml/document"
 require "rexml/xpath"
 
diff --git a/test/rexml/test_light.rb b/test/rexml/test_light.rb
index 54b2c52..fb490c0 100644
--- a/test/rexml/test_light.rb
+++ b/test/rexml/test_light.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 require "rexml/light/node"
 require "rexml/parsers/lightparser"
 
diff --git a/test/rexml/test_lightparser.rb b/test/rexml/test_lightparser.rb
index 533f9fb..a3406b0 100644
--- a/test/rexml/test_lightparser.rb
+++ b/test/rexml/test_lightparser.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 require 'rexml/parsers/lightparser'
 
 module REXMLTests
diff --git a/test/rexml/test_listener.rb b/test/rexml/test_listener.rb
index 5e40d7f..9ddabf8 100644
--- a/test/rexml/test_listener.rb
+++ b/test/rexml/test_listener.rb
@@ -1,5 +1,6 @@
 # coding: binary
 # frozen_string_literal: false
+require_relative "helper"
 
 require 'rexml/streamlistener'
 
diff --git a/test/rexml/test_martin_fowler.rb b/test/rexml/test_martin_fowler.rb
index ce27d72..73e9d18 100644
--- a/test/rexml/test_martin_fowler.rb
+++ b/test/rexml/test_martin_fowler.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 module REXMLTests
   class OrderTesterMF < Test::Unit::TestCase
     DOC = <<END
diff --git a/test/rexml/test_namespace.rb b/test/rexml/test_namespace.rb
index a41e505..d472ef6 100644
--- a/test/rexml/test_namespace.rb
+++ b/test/rexml/test_namespace.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 module REXMLTests
   class TestNamespace < Test::Unit::TestCase
     include Helper::Fixture
diff --git a/test/rexml/test_order.rb b/test/rexml/test_order.rb
index f3f9cc5..eb568f9 100644
--- a/test/rexml/test_order.rb
+++ b/test/rexml/test_order.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 begin
   require 'zlib'
 rescue LoadError
diff --git a/test/rexml/test_preceding_sibling.rb b/test/rexml/test_preceding_sibling.rb
index 7e661eb..18f2ad6 100644
--- a/test/rexml/test_preceding_sibling.rb
+++ b/test/rexml/test_preceding_sibling.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 # ISSUE 32
+require_relative "helper"
 
 module REXMLTests
   # daz - for report by Dan Kohn in:
diff --git a/test/rexml/test_pullparser.rb b/test/rexml/test_pullparser.rb
index 53a985b..f9cd9ab 100644
--- a/test/rexml/test_pullparser.rb
+++ b/test/rexml/test_pullparser.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 require 'rexml/parsers/pullparser'
 
 module REXMLTests
diff --git a/test/rexml/test_rexml_issuezilla.rb b/test/rexml/test_rexml_issuezilla.rb
index 7bcbefc..4ec72df 100644
--- a/test/rexml/test_rexml_issuezilla.rb
+++ b/test/rexml/test_rexml_issuezilla.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 module REXMLTests
   class TestIssuezillaParsing < Test::Unit::TestCase
     include Helper::Fixture
diff --git a/test/rexml/test_sax.rb b/test/rexml/test_sax.rb
index c2255bf..2d3efba 100644
--- a/test/rexml/test_sax.rb
+++ b/test/rexml/test_sax.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 require 'rexml/sax2listener'
 require 'rexml/parsers/sax2parser'
 
diff --git a/test/rexml/test_stream.rb b/test/rexml/test_stream.rb
index 545d534..d8fefc4 100644
--- a/test/rexml/test_stream.rb
+++ b/test/rexml/test_stream.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 require 'rexml/streamlistener'
 require 'stringio'
 
diff --git a/test/rexml/test_text.rb b/test/rexml/test_text.rb
index bae2165..4cd7adc 100644
--- a/test/rexml/test_text.rb
+++ b/test/rexml/test_text.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 module REXMLTests
   class TextTester < Test::Unit::TestCase
     include REXML
diff --git a/test/rexml/test_ticket_80.rb b/test/rexml/test_ticket_80.rb
index daebdc5..7dcf92c 100644
--- a/test/rexml/test_ticket_80.rb
+++ b/test/rexml/test_ticket_80.rb
@@ -7,6 +7,8 @@
 # copy: (C) CopyLoose 2006 Bib Development Team <bib-devel>at<uberdev>dot<org>
 #------------------------------------------------------------------------------
 
+require_relative "helper"
+
 module REXMLTests
   class Ticket80 < Test::Unit::TestCase
 
diff --git a/test/rexml/test_validation_rng.rb b/test/rexml/test_validation_rng.rb
index 4872396..6dc6c03 100644
--- a/test/rexml/test_validation_rng.rb
+++ b/test/rexml/test_validation_rng.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 require "rexml/validation/relaxng"
 
 module REXMLTests
diff --git a/test/rexml/test_xml_declaration.rb b/test/rexml/test_xml_declaration.rb
index 6a1f4df..f4ac75e 100644
--- a/test/rexml/test_xml_declaration.rb
+++ b/test/rexml/test_xml_declaration.rb
@@ -3,6 +3,8 @@
 #  Created by Henrik Mårtensson on 2007-02-18.
 #  Copyright (c) 2007. All rights reserved.
 
+require_relative "helper"
+
 module REXMLTests
   class TestXmlDeclaration < Test::Unit::TestCase
     def setup
diff --git a/test/rexml/xpath/test_attribute.rb b/test/rexml/xpath/test_attribute.rb
index b778ff8..0de3e97 100644
--- a/test/rexml/xpath/test_attribute.rb
+++ b/test/rexml/xpath/test_attribute.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 module REXMLTests
   class TestXPathAttribute < Test::Unit::TestCase
     def setup
diff --git a/test/rexml/xpath/test_axis_preceding_sibling.rb b/test/rexml/xpath/test_axis_preceding_sibling.rb
index 9c44ad6..5fb035a 100644
--- a/test/rexml/xpath/test_axis_preceding_sibling.rb
+++ b/test/rexml/xpath/test_axis_preceding_sibling.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 module REXMLTests
   class TestXPathAxisPredcedingSibling < Test::Unit::TestCase
     include REXML
diff --git a/test/rexml/xpath/test_axis_self.rb b/test/rexml/xpath/test_axis_self.rb
index 4e422f5..24196e1 100644
--- a/test/rexml/xpath/test_axis_self.rb
+++ b/test/rexml/xpath/test_axis_self.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 module REXMLTests
   class TestXPathAxisSelf < Test::Unit::TestCase
     def test_only
diff --git a/test/rexml/xpath/test_base.rb b/test/rexml/xpath/test_base.rb
index 68b33ab..7a43cd4 100644
--- a/test/rexml/xpath/test_base.rb
+++ b/test/rexml/xpath/test_base.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 module REXMLTests
   class TestXPathBase < Test::Unit::TestCase
     include Helper::Fixture
diff --git a/test/rexml/xpath/test_compare.rb b/test/rexml/xpath/test_compare.rb
index 11d11e5..e6bf80c 100644
--- a/test/rexml/xpath/test_compare.rb
+++ b/test/rexml/xpath/test_compare.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 module REXMLTests
   class TestXPathCompare < Test::Unit::TestCase
     def match(xml, xpath)
diff --git a/test/rexml/xpath/test_node.rb b/test/rexml/xpath/test_node.rb
index 742bfbb..7a16f95 100644
--- a/test/rexml/xpath/test_node.rb
+++ b/test/rexml/xpath/test_node.rb
@@ -1,5 +1,6 @@
 # -*- coding: utf-8 -*-
 # frozen_string_literal: false
+require_relative "helper"
 
 module REXMLTests
   class TestXPathNode < Test::Unit::TestCase
diff --git a/test/rexml/xpath/test_predicate.rb b/test/rexml/xpath/test_predicate.rb
index 278e376..c0bda2d 100644
--- a/test/rexml/xpath/test_predicate.rb
+++ b/test/rexml/xpath/test_predicate.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 require "rexml/xpath"
 require "rexml/parsers/xpathparser"
 
diff --git a/test/rexml/xpath/test_text.rb b/test/rexml/xpath/test_text.rb
index dccc4c8..2dc02ba 100644
--- a/test/rexml/xpath/test_text.rb
+++ b/test/rexml/xpath/test_text.rb
@@ -1,5 +1,6 @@
 # frozen_string_literal: false
 
+require_relative "helper"
 require 'rexml/element'
 require 'rexml/xpath'
 
-- 
2.43.0

