summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--test/ruby/test_beginendblock.rb8
2 files changed, 7 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index cc9988a017..53d91430f9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.