summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-12 00:33:53 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-12 00:33:53 +0000
commit226689a2e889a1d6ad49f13ab1f132370cb7dd0d (patch)
tree2f934bf07ac8de5c19f26cf284d6a327f9b1d8a2 /test
parent3036104a6a052622af49ec6c92d1b269aee114b7 (diff)
Remove wrong tests of r37144
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_io.rb42
1 files changed, 0 insertions, 42 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index f8ef71e41e..7da6878829 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -2043,48 +2043,6 @@ End
file.close!
end
- def test_warn
- stderr = EnvUtil.verbose_warning do
- warn "warning"
- end
- assert_equal("warning\n", stderr)
-
- stderr = EnvUtil.verbose_warning do
- warn
- end
- assert_equal("", stderr)
-
- stderr = EnvUtil.verbose_warning do
- warn "[Feature #5029]", "[ruby-core:38070]"
- end
- assert_equal("[Feature #5029]\n[ruby-core:38070]\n", stderr)
- end
-
- def test_cloexec
- return unless defined? Fcntl::FD_CLOEXEC
- open(__FILE__) {|f|
- assert(f.close_on_exec?)
- g = f.dup
- begin
- assert(g.close_on_exec?)
- f.reopen(g)
- assert(f.close_on_exec?)
- ensure
- g.close
- end
- g = IO.new(f.fcntl(Fcntl::F_DUPFD))
- begin
- assert(g.close_on_exec?)
- ensure
- g.close
- end
- }
- IO.pipe {|r,w|
- assert(r.close_on_exec?)
- assert(w.close_on_exec?)
- }
- end
-
def test_ioctl_linux
return if /linux/ !~ RUBY_PLATFORM