Add RUBYOPT=>nil to avoid false negative

add RUBYOPT=nil to suppress circular require warnings to avoid false negative
with stderr assertion.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2013-01-09 04:56:34 +00:00
Родитель 1ff3e23fe8
Коммит 193e1fc810
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -609,13 +609,11 @@ class TestRequire < Test::Unit::TestCase
bug7530 = '[ruby-core:50645]'
script = Tempfile.new(%w'bug-7530- .rb')
script.close
dir, base = File.split(script.path)
assert_in_out_err(["-C", dir, "-", base], <<-INPUT, %w(:ok), [], bug7530)
assert_in_out_err([{"RUBYOPT" => nil}, "-", script.path], <<-INPUT, %w(:ok), [], bug7530)
PATH = ARGV.shift
THREADS = 2
ITERATIONS_PER_THREAD = 1000
$: << '.'
THREADS.times.map {
Thread.new do
ITERATIONS_PER_THREAD.times do