From 06fcf88d695c8bfb6703966dd26629642ff7bf2d Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 17 Aug 2019 12:19:49 +0900 Subject: Use the original require for test_race_exception The extension for require method with rubygems affects this test case. We need to keep this test for the original method. --- test/ruby/test_require.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/ruby') diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb index 6c4b97d08d..f96155a0b1 100644 --- a/test/ruby/test_require.rb +++ b/test/ruby/test_require.rb @@ -552,7 +552,7 @@ class TestRequire < Test::Unit::TestCase t1 = Thread.new do Thread.pass until start begin - require(path) + Kernel.send(:require, path) rescue RuntimeError end @@ -561,7 +561,7 @@ class TestRequire < Test::Unit::TestCase t2 = Thread.new do Thread.pass until scratch[0] - t2_res = require(path) + t2_res = Kernel.send(:require, path) end t1[:scratch] = t2[:scratch] = scratch -- cgit v1.2.3