summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-09 04:56:34 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-09 04:56:34 +0000
commit193e1fc81055e99626f08a43a4fc7ccb96933091 (patch)
treeb581a07a88288b991f279789397bc0f701781a58
parent1ff3e23fe844f780e88f971c759cfc2184f508a3 (diff)
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
-rw-r--r--test/ruby/test_require.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb
index e7e9e85..7e6af70 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