diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/ruby/test_beginendblock.rb | 8 |
2 files changed, 7 insertions, 6 deletions
@@ -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, diff --git a/test/ruby/test_beginendblock.rb b/test/ruby/test_beginendblock.rb index 82b8880894..a4a5f114fc 100644 --- a/test/ruby/test_beginendblock.rb +++ b/test/ruby/test_beginendblock.rb @@ -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. |