ruby-changes:3038
From: ko1@a...
Date: 24 Dec 2007 00:48:51 +0900
Subject: [ruby-changes:3038] matz - Ruby:r14530 (trunk): * test/ruby/test_beginendblock.rb (TestBeginEndBlock::test_endblockwarn):
matz 2007-12-24 00:48:39 +0900 (Mon, 24 Dec 2007)
New Revision: 14530
Added files:
trunk/test/ruby/endblockwarn_rb
Removed files:
trunk/test/ruby/endblockwarn.rb
Modified files:
trunk/ChangeLog
trunk/test/ruby/test_beginendblock.rb
Log:
* test/ruby/test_beginendblock.rb (TestBeginEndBlock::test_endblockwarn):
rename endblockwarn.rb to endblockwarn_rb to avoid unnecessary
warning in make test.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_beginendblock.rb?r1=14530&r2=14529
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/endblockwarn_rb
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14530&r2=14529
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/endblockwarn.rb
Index: ChangeLog
===================================================================
--- ChangeLog (revision 14529)
+++ ChangeLog (revision 14530)
@@ -1,3 +1,9 @@
+Mon Dec 24 00:47:05 2007 Yukihiro Matsumoto <matz@r...>
+
+ * test/ruby/test_beginendblock.rb (TestBeginEndBlock::test_endblockwarn):
+ rename endblockwarn.rb to endblockwarn_rb to avoid unnecessary
+ warning in make test.
+
Sun Dec 23 23:03:13 2007 Tanaka Akira <akr@f...>
* encoding.c (rb_enc_codepoint): implemented to raise invalid
Index: test/ruby/endblockwarn.rb
===================================================================
--- test/ruby/endblockwarn.rb (revision 14529)
+++ test/ruby/endblockwarn.rb (revision 14530)
@@ -1,12 +0,0 @@
-def end1
- END {}
-end
-
-end1
-
-eval <<EOE
- def end2
- END {}
- end
-EOE
-
Index: test/ruby/endblockwarn_rb
===================================================================
--- test/ruby/endblockwarn_rb (revision 0)
+++ test/ruby/endblockwarn_rb (revision 14530)
@@ -0,0 +1,12 @@
+def end1
+ END {}
+end
+
+end1
+
+eval <<EOE
+ def end2
+ END {}
+ end
+EOE
+
Property changes on: test/ruby/endblockwarn_rb
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ LF
Index: test/ruby/test_beginendblock.rb
===================================================================
--- test/ruby/test_beginendblock.rb (revision 14529)
+++ test/ruby/test_beginendblock.rb (revision 14530)
@@ -38,7 +38,7 @@
STDERR.reopen(File.open(errout, "w"))
STDERR.sync = true
Dir.chdir(#{q(DIR)})
-system("#{ruby}", "endblockwarn.rb")
+system("#{ruby}", "endblockwarn_rb")
EOF
launcher.close
launcherpath = launcher.path
@@ -46,7 +46,7 @@
erroutpath = errout.path
system(ruby, launcherpath, erroutpath)
expected = <<EOW
-endblockwarn.rb:2: 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))
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml