summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-08-07 10:34:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-08-07 10:34:11 +0000
commitf306bb0fed00e8d3aa456b316eec73b8b5ed9fe1 (patch)
treefeef6b4ed4175f1d812cd6d34b4e6eae8f4a8db6
parentdf0e70b90a3198295b5640b36c57ef1266a7a258 (diff)
suppress warnings
* basictest/runner.rb, bootstraptest/runner.rb: disable warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rwxr-xr-xbasictest/runner.rb3
-rwxr-xr-xbootstraptest/runner.rb1
2 files changed, 4 insertions, 0 deletions
diff --git a/basictest/runner.rb b/basictest/runner.rb
index 3a60036ffa..0330b6d506 100755
--- a/basictest/runner.rb
+++ b/basictest/runner.rb
@@ -17,6 +17,9 @@ $stderr.reopen($stdout)
error = ''
srcdir = File.expand_path('..', File.dirname(__FILE__))
+if opt = ENV["RUBYOPT"]
+ ENV["RUBYOPT"] = opt + " -W1"
+end
`#{ruby} #{opt} -W1 #{srcdir}/basictest/test.rb #{ARGV.join(' ')}`.each_line do |line|
if line =~ /^end of test/
print "\ntest succeeded\n"
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb
index d9711fef38..8945c16bd7 100755
--- a/bootstraptest/runner.rb
+++ b/bootstraptest/runner.rb
@@ -60,6 +60,7 @@ end
def main
@ruby = File.expand_path('miniruby')
@verbose = false
+ $VERBOSE = false
$stress = false
@color = nil
@tty = nil