diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-24 02:06:32 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-24 02:06:32 +0000 |
commit | 052c0e67d99552aeb2091d1ae7133465a5aa7291 (patch) | |
tree | f7bb54920e8bad79a2ddc100c900da9b6cc4c2ad /test/ruby | |
parent | 61f50e317e3bfea90cf1b8e9ce8e4e6f704173a4 (diff) | |
download | ruby-052c0e67d99552aeb2091d1ae7133465a5aa7291.tar.gz |
* test/ruby/test_require.rb: Remove temporally files in the tests.
* test/ruby/test_rubyoptions.rb: Ditto.
* test/logger/test_logger.rb: Ditto.
* test/psych/test_psych.rb: Ditto.
* test/readline/test_readline.rb: Ditto.
* test/syslog/test_syslog_logger.rb: Ditto.
* test/webrick/test_httpauth.rb: Ditto.
* test/zlib/test_zlib.rb: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_require.rb | 6 | ||||
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb index f6e75a8eaf..cb17b915c2 100644 --- a/test/ruby/test_require.rb +++ b/test/ruby/test_require.rb @@ -26,6 +26,7 @@ class TestRequire < Test::Unit::TestCase p :ok end INPUT + t.close(true) end def test_require_too_long_filename @@ -101,6 +102,7 @@ class TestRequire < Test::Unit::TestCase ensure env_rubypath ? ENV["RUBYPATH"] = env_rubypath : ENV.delete("RUBYPATH") env_home ? ENV["HOME"] = env_home : ENV.delete("HOME") + t.close(true) end def test_require_with_unc @@ -258,6 +260,7 @@ class TestRequire < Test::Unit::TestCase INPUT assert_raise(ArgumentError) { at_exit } + t.close(true) end def test_load2 # [ruby-core:25039] @@ -271,6 +274,7 @@ class TestRequire < Test::Unit::TestCase assert_in_out_err([], <<-INPUT, %w("hello"), []) load(#{ t.path.dump }, true) INPUT + t.close(true) end def test_tainted_loadpath @@ -320,6 +324,8 @@ class TestRequire < Test::Unit::TestCase require "#{ file }" p :ok INPUT + + t.close(true) end def test_relative diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index c7cda12659..cd100de3bd 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -528,7 +528,7 @@ class TestRubyOptions < Test::Unit::TestCase t.flush assert_in_out_err(["-e", "$0=ARGV[0]; Process.kill :SEGV, $$", t.path], "", [], expected_stderr, bug7597, opts) - t.close + t.close(true) end def test_DATA |