1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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>
* win32/win32.c (init_stdhandle): stderr should be without buffering,

View file

@ -46,13 +46,9 @@ EOF
errout.close
erroutpath = errout.path
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
warning: END in method; use at_exit
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))
# expecting Tempfile to unlink launcher and errout file.