diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-15 07:38:59 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-15 07:38:59 +0000 |
commit | 2b9cbceb5ea42f95e8901ef6565063fe197d0057 (patch) | |
tree | a1a83528164bed3a7793b2a2c88c1cee157ff786 /test | |
parent | 216dcd80ffaa233be3f61d7e21eeeb13bad58795 (diff) | |
download | ruby-2b9cbceb5ea42f95e8901ef6565063fe197d0057.tar.gz |
* 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
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_beginendblock.rb | 8 |
1 files changed, 2 insertions, 6 deletions
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. |