aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--test/psych/test_exception.rb1
-rw-r--r--test/ruby/test_marshal.rb4
-rw-r--r--test/ruby/test_process.rb1
4 files changed, 13 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 677ab3d07d..c57def42bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Tue Jan 29 12:05:18 2013 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/test_marshal.rb: remove temporally files early.
+
+ * test/ruby/test_process.rb: ditto.
+
+ * test/psych/test_exception.rb: ditto.
+
Tue Jan 29 09:26:20 2013 Shugo Maeda <shugo@ruby-lang.org>
* ext/socket/socket.c (sock_s_pack_sockaddr_un): calculate the
diff --git a/test/psych/test_exception.rb b/test/psych/test_exception.rb
index 5615fc2db4..46dece4127 100644
--- a/test/psych/test_exception.rb
+++ b/test/psych/test_exception.rb
@@ -138,6 +138,7 @@ module Psych
rescue StandardError
assert true # count assertion
ensure
+ t.close(true)
return unless $!
ancestors = $!.class.ancestors.inspect
diff --git a/test/ruby/test_marshal.rb b/test/ruby/test_marshal.rb
index 74f950b64c..8a10ded463 100644
--- a/test/ruby/test_marshal.rb
+++ b/test/ruby/test_marshal.rb
@@ -336,7 +336,9 @@ class TestMarshal < Test::Unit::TestCase
re = Tempfile.open("marshal_regexp") do |f|
f.binmode.write("\x04\bI/\x00\x00\x06:\rencoding\"\rUS-ASCII")
f.close
- Marshal.load(f.open.binmode)
+ re2 = Marshal.load(f.open.binmode)
+ f.close(true)
+ re2
end
assert_equal(//, re)
end
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
index 9746cf008b..e5ff7cd2c6 100644
--- a/test/ruby/test_process.rb
+++ b/test/ruby/test_process.rb
@@ -815,6 +815,7 @@ class TestProcess < Test::Unit::TestCase
Process.wait(pid)
tmp.rewind
assert_equal(pid.to_s, tmp.read)
+ tmp.close(true)
end
end