Project

General

Profile

Actions

Bug #5222

closed

test_script_from_stdin のエラー

Added by ngoto (Naohisa Goto) over 13 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.4dev (2011-08-23) [sparc64-solaris2.10]
Backport:
[ruby-dev:44420]

Description

一部の環境(Solarisなど)では、master PTY が端末ではないため、
IO#echo= に失敗して test_script_from_stdin がエラーになります。

  1. Error:
    test_script_from_stdin(TestRubyOptions):
    Errno::EINVAL: Invalid argument
    /X/src/sparc64-cc11-trunk-33024/test/ruby/
    test_rubyoptions.rb:517:in echo=' /X/src/sparc64-cc11-trunk-33024/test/ruby/ test_rubyoptions.rb:517:in block (2 levels) in test_script_from_stdin'
    /X/src/sparc64-cc11-trunk-33024/test/ruby/
    test_rubyoptions.rb:516:in open' /X/src/sparc64-cc11-trunk-33024/test/ruby/ test_rubyoptions.rb:516:in block in test_script_from_stdin'
    /X/src/sparc64-cc11-trunk-33024/test/ruby/
    test_rubyoptions.rb:514:in pipe' /X/src/sparc64-cc11-trunk-33024/test/ruby/ test_rubyoptions.rb:514:in test_script_from_stdin'

添付のパッチのように slave を操作すれば、エラーが出ずテストに成功します。

参考: [ruby-dev:41993]


Files

test-rubyoptions.patch (719 Bytes) test-rubyoptions.patch ngoto (Naohisa Goto), 08/25/2011 12:58 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0