* 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:
parent
15e793bad9
commit
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>
|
Tue Nov 22 00:25:17 2011 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* io.c (linux_get_maxfd): get rid of a warning.
|
* io.c (linux_get_maxfd): get rid of a warning.
|
||||||
|
@ -1922,7 +1922,7 @@ End
|
|||||||
Tempfile.open(self.class.name) do |f|
|
Tempfile.open(self.class.name) do |f|
|
||||||
fd = f.fcntl(Fcntl::F_DUPFD, 63)
|
fd = f.fcntl(Fcntl::F_DUPFD, 63)
|
||||||
begin
|
begin
|
||||||
assert_equal(fd, 63)
|
assert_operator(fd, :>=, 63)
|
||||||
ensure
|
ensure
|
||||||
IO.for_fd(fd).close
|
IO.for_fd(fd).close
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user