Project

General

Profile

Actions

Bug #5222

closed

test_script_from_stdin のエラー

Added by ngoto (Naohisa Goto) about 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
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

Updated by nobu (Nobuyoshi Nakada) about 11 years ago

  • Category set to test
  • Status changed from Open to Assigned
  • Assignee set to ngoto (Naohisa Goto)
  • Target version set to 1.9.4

添付がないようですがよろしく。

Updated by ngoto (Naohisa Goto) about 11 years ago

すいません。添付ファイルが抜けてました。

Actions #3

Updated by ngoto (Naohisa Goto) about 11 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r33049.
Naohisa, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • test/ruby/test_rubyoptions.rb (test_script_from_stdin): slave pty
    should be manipulated because master pty may not be a tty on some
    environment (e.g. Solaris). [Bug:#5222] [ruby-dev:44420]
Actions

Also available in: Atom PDF