diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-09 04:56:34 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-09 04:56:34 +0000 |
commit | 193e1fc81055e99626f08a43a4fc7ccb96933091 (patch) | |
tree | b581a07a88288b991f279789397bc0f701781a58 /test | |
parent | 1ff3e23fe844f780e88f971c759cfc2184f508a3 (diff) | |
download | ruby-193e1fc81055e99626f08a43a4fc7ccb96933091.tar.gz |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_require.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb index e7e9e8578d..7e6af70ff6 100644 --- a/test/ruby/test_require.rb +++ b/test/ruby/test_require.rb @@ -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 |