mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_beginendblock.rb, test/ruby/endblockwarn.rb: commited older
version.. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cd8d08b532
commit
dc952ac536
2 changed files with 1 additions and 15 deletions
|
@ -1,17 +1,3 @@
|
|||
BEGIN {
|
||||
if errout = ARGV.shift
|
||||
dir = File.dirname(File.expand_path(__FILE__))
|
||||
basename = File.basename(__FILE__)
|
||||
require "#{dir}/envutil"
|
||||
STDERR.reopen(File.open(errout, "w"))
|
||||
STDERR.sync = true
|
||||
Dir.chdir(dir)
|
||||
cmd = "\"#{EnvUtil.rubybin}\" \"#{basename}\""
|
||||
exec(cmd)
|
||||
exit!("must not reach here")
|
||||
end
|
||||
}
|
||||
|
||||
def end1
|
||||
END {}
|
||||
end
|
||||
|
|
|
@ -48,7 +48,7 @@ EOF
|
|||
erroutpath = errout.path
|
||||
system("#{q(ruby)} #{q(launcherpath)} #{q(erroutpath)}")
|
||||
expected = <<EOW
|
||||
endblockwarn.rb:16: warning: END in method; use at_exit
|
||||
endblockwarn.rb:2: warning: END in method; use at_exit
|
||||
(eval):2: warning: END in method; use at_exit
|
||||
EOW
|
||||
assert_equal(expected, File.read(erroutpath))
|
||||
|
|
Loading…
Add table
Reference in a new issue