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: remove temporally files early.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2012-07-18 14:09:21 +00:00
parent bc893dcf07
commit 5b7b60bb59
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Wed Jul 18 23:08:57 2012 Tanaka Akira <akr@fsij.org>
* test/ruby/test_beginendblock.rb: remove temporally files early.
Wed Jul 18 22:43:02 2012 Tanaka Akira <akr@fsij.org>
* test/ruby/test_autoload.rb: remove temporally files early.

View file

@ -30,6 +30,8 @@ class TestBeginEndBlock < Test::Unit::TestCase
assert_equal(%w(:begin :end), result.split)
result = IO.popen([ruby, "-p", "-eBEGIN{p :begin}", "-eEND{p :end}", inputpath]){|io|io.read}
assert_equal(%w(:begin foo bar :end), result.split)
ensure
input.unlink
end
def test_begininmethod
@ -76,6 +78,9 @@ endblockwarn_rb:2: warning: END in method; use at_exit
EOW
assert_equal(expected, File.read(erroutpath))
# expecting Tempfile to unlink launcher and errout file.
ensure
launcher.unlink
errout.unlink
end
def test_raise_in_at_exit
@ -146,7 +151,8 @@ EOW
"outer0" ]
assert_in_out_err(t.path, "", expected, [], "[ruby-core:35237]")
t.close
ensure
t.close(true)
end
def test_rescue_at_exit