* test/ruby/test_beginendblock.rb (test_endblockwarn): now parser

warnings emit source names and line numbers.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2007-05-15 07:38:59 +00:00
parent 216dcd80ff
commit 2b9cbceb5e
2 changed files with 7 additions and 6 deletions

View File

@ -1,3 +1,8 @@
Tue May 15 16:40:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/ruby/test_beginendblock.rb (test_endblockwarn): now parser
warnings emit source names and line numbers.
Tue May 15 15:01:38 2007 NAKAMURA Usaku <usa@ruby-lang.org> Tue May 15 15:01:38 2007 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (init_stdhandle): stderr should be without buffering, * win32/win32.c (init_stdhandle): stderr should be without buffering,

View File

@ -46,13 +46,9 @@ EOF
errout.close errout.close
erroutpath = errout.path erroutpath = errout.path
system("#{q(ruby)} #{q(launcherpath)} #{q(erroutpath)}") system("#{q(ruby)} #{q(launcherpath)} #{q(erroutpath)}")
# expected = <<EOW
#endblockwarn.rb:2: warning: END in method; use at_exit
#(eval):2: warning: END in method; use at_exit
#EOW
expected = <<EOW expected = <<EOW
warning: END in method; use at_exit endblockwarn.rb:2: warning: END in method; use at_exit
warning: END in method; use at_exit (eval):2: warning: END in method; use at_exit
EOW EOW
assert_equal(expected, File.read(erroutpath)) assert_equal(expected, File.read(erroutpath))
# expecting Tempfile to unlink launcher and errout file. # expecting Tempfile to unlink launcher and errout file.