зеркало из https://github.com/github/ruby.git
* test/ruby/test_io.rb (test_fcntl_dupfd): the argument of F_DUPFD is
minimum file descriptor. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
15e793bad9
Коммит
19bca2e6b2
|
@ -1,3 +1,8 @@
|
|||
Tue Nov 22 00:44:59 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* test/ruby/test_io.rb (test_fcntl_dupfd): the argument of F_DUPFD is
|
||||
minimum file descriptor.
|
||||
|
||||
Tue Nov 22 00:25:17 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* io.c (linux_get_maxfd): get rid of a warning.
|
||||
|
|
|
@ -1922,7 +1922,7 @@ End
|
|||
Tempfile.open(self.class.name) do |f|
|
||||
fd = f.fcntl(Fcntl::F_DUPFD, 63)
|
||||
begin
|
||||
assert_equal(fd, 63)
|
||||
assert_operator(fd, :>=, 63)
|
||||
ensure
|
||||
IO.for_fd(fd).close
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче