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:
parent
1ff3e23fe8
commit
193e1fc810
@ -609,13 +609,11 @@ class TestRequire < Test::Unit::TestCase
|
|||||||
bug7530 = '[ruby-core:50645]'
|
bug7530 = '[ruby-core:50645]'
|
||||||
script = Tempfile.new(%w'bug-7530- .rb')
|
script = Tempfile.new(%w'bug-7530- .rb')
|
||||||
script.close
|
script.close
|
||||||
dir, base = File.split(script.path)
|
assert_in_out_err([{"RUBYOPT" => nil}, "-", script.path], <<-INPUT, %w(:ok), [], bug7530)
|
||||||
assert_in_out_err(["-C", dir, "-", base], <<-INPUT, %w(:ok), [], bug7530)
|
|
||||||
PATH = ARGV.shift
|
PATH = ARGV.shift
|
||||||
THREADS = 2
|
THREADS = 2
|
||||||
ITERATIONS_PER_THREAD = 1000
|
ITERATIONS_PER_THREAD = 1000
|
||||||
|
|
||||||
$: << '.'
|
|
||||||
THREADS.times.map {
|
THREADS.times.map {
|
||||||
Thread.new do
|
Thread.new do
|
||||||
ITERATIONS_PER_THREAD.times do
|
ITERATIONS_PER_THREAD.times do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user