[Ruby 1.9 - Bug #5222][Open] test script from stdin のエラー

Issue #5222 has been reported by Naohisa G…


Bug #5222: test_script_from_stdin のエラー

Author: Naohisa G.
Status: Open
Priority: Low
Assignee:
Category:
Target version:
ruby -v: ruby 1.9.4dev (2011-08-23) [sparc64-solaris2.10]

一部の環境(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]

Issue #5222 has been updated by Nobuyoshi N…

Category set to test
Status changed from Open to Assigned
Assignee set to Naohisa G.
Target version set to 1.9.4

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

Bug #5222: test_script_from_stdin のエラー

Author: Naohisa G.
Status: Assigned
Priority: Low
Assignee: Naohisa G.
Category: test
Target version: 1.9.4
ruby -v: ruby 1.9.4dev (2011-08-23) [sparc64-solaris2.10]

一部の環境(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]

Issue #5222 has been updated by Naohisa G…

File test-rubyoptions.patch added

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

Bug #5222: test_script_from_stdin のエラー

Author: Naohisa G.
Status: Assigned
Priority: Low
Assignee: Naohisa G.
Category: test
Target version: 1.9.4
ruby -v: ruby 1.9.4dev (2011-08-23) [sparc64-solaris2.10]

一部の環境(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]