900e83b501 changed from a warning
to an error in this case, but the warning was only issued in
verbose mode, and therefore the error was only raised in verbose
mode. That was not intentional, verbose mode should only change
whether warnings are emitted, not other behavior. This issues
the RuntimeError in all cases.
This change broke a couple tests, as the tests actually issued
the warning and therefore now raise an error. This wasn't caught
earlier as test_variable suppressed the warning in this case,
effectively setting $VERBOSE = false around the code that warned.
basictest isn't run in verbose mode and therefore didn't expose
the issue previously. Fix these tests.
Fixes [Bug #14541]
* basictest/runner.rb: do not clobber the option by --run-opt with
RUBYOPT. reported by Allen Hewes <rallenh AT hotmail.com>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* basictest/runner.rb: disable warnings for old test script.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* basictest/test.rb (test_check): update the file name in
messages, as r53537. [Feature #11982]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e