Actions
Bug #5222
closedtest_script_from_stdin のエラー
    Bug #5222:
    test_script_from_stdin のエラー
  
Description
一部の環境(Solarisなど)では、master PTY が端末ではないため、
IO#echo= に失敗して test_script_from_stdin がエラーになります。
- Error:
 test_script_from_stdin(TestRubyOptions):
 Errno::EINVAL: Invalid argument
 /X/src/sparc64-cc11-trunk-33024/test/ruby/
 test_rubyoptions.rb:517:inecho=' /X/src/sparc64-cc11-trunk-33024/test/ruby/ test_rubyoptions.rb:517:inblock (2 levels) in test_script_from_stdin'
 /X/src/sparc64-cc11-trunk-33024/test/ruby/
 test_rubyoptions.rb:516:inopen' /X/src/sparc64-cc11-trunk-33024/test/ruby/ test_rubyoptions.rb:516:inblock in test_script_from_stdin'
 /X/src/sparc64-cc11-trunk-33024/test/ruby/
 test_rubyoptions.rb:514:inpipe' /X/src/sparc64-cc11-trunk-33024/test/ruby/ test_rubyoptions.rb:514:intest_script_from_stdin'
添付のパッチのように slave を操作すれば、エラーが出ずテストに成功します。
参考: [ruby-dev:41993]
Files
        
           Updated by nobu (Nobuyoshi Nakada) about 14 years ago
          Updated by nobu (Nobuyoshi Nakada) about 14 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 14 years ago
          Updated by ngoto (Naohisa Goto) about 14 years ago
          
          
        
        
      
      - File test-rubyoptions.patch test-rubyoptions.patch added
すいません。添付ファイルが抜けてました。
        
           Updated by ngoto (Naohisa Goto) about 14 years ago
          Updated by ngoto (Naohisa Goto) about 14 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