diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-06 09:48:00 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-06 09:48:00 +0000 |
commit | c9f5a8f3f2a18b1a2e283d29e906471dade5f3be (patch) | |
tree | 8db79e72a6f0a9450ff08b2d23d49964df3c8727 /bootstraptest/test_io.rb | |
parent | 015997ecde57588a5ae850b0c27751162cbc0cf4 (diff) |
* bootstraptest/test_io.c: add a test for [ruby-dev:46834].
* io.c (rb_cloexec_fcntl_dupfd) Use an emulation with dup(2) when
fcntl(2) and/or F_DUPFD is unavailable.
Suggested by akr.
* configure.in (HAVE_FCNTL): NativeClient does not provide fcntl(2).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_io.rb')
-rw-r--r-- | bootstraptest/test_io.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bootstraptest/test_io.rb b/bootstraptest/test_io.rb index ff858b67fb..f7360f34b3 100644 --- a/bootstraptest/test_io.rb +++ b/bootstraptest/test_io.rb @@ -74,6 +74,12 @@ assert_equal 'ok', %q{ :ok } +assert_equal 'ok', %q{ + dup = STDIN.dup + dupfd = dup.fileno + dupfd == STDIN.dup.fileno ? :ng : :ok +}, '[ruby-dev:46834]' + assert_normal_exit %q{ ARGF.set_encoding "foo" } |