# \[Ruby 1.9 - Bug #4157\] test pty で、たまに出る Failure

**URL:** <https://www.ruby-forum.com/t/ruby-1-9-bug-4157-test-pty-failure/208746>\
**Category:** Development\
**Created:** [June 26, 2011, 10:00am UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-4157-test-pty-failure/208746 "2011-06-26T10:00:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [June 26, 2011, 10:00am UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-4157-test-pty-failure/208746/1 "2011-06-26T10:00:21Z")

</div>

Issue #4157 has been updated by Makoto K…

## trunk の r32231 で再現できませんでした

Bug #4157: test\_pty で、たまに出る Failure

> **[Bug #4157: test\_pty で、たまに出る Failure - Ruby master - Ruby Issue Tracking System](https://redmine.ruby-lang.org/issues/4157)**
>
> Redmine

Author: Makoto K.  
Status: Assigned  
Priority: Low  
Assignee: Makoto K.  
Category:  
Target version:  
ruby -v: ruby 1.9.3dev (2010-12-14 trunk 30206) [x86\_64-freebsd8.2]

=begin  
amd64 FreeBSD8 でも #4121 が起きることがあるのですが、  
while で $ while make test-all TESTS=“test\_pty.rb” ; do : ; done  
のように実行していると、他の Failure がたまに起きます。  
以下のように、どれも、期待した文字列の代わりに nil が返っています。

1. Failure:  
test\_argv0(TestPTY)  
[/export/home/ksmakoto/ruby-git/test/test\_pty.rb:45]:  
\<“bar\r\n”\> expected but was  
.

2. Failure:  
test\_commandline(TestPTY)  
[/export/home/ksmakoto/ruby-git/test/test\_pty.rb:36]:  
\<“foo\r\n”\> expected but was  
.

3. Failure:  
test\_spawn\_with\_block(TestPTY)  
[/export/home/ksmakoto/ruby-git/test/test\_pty.rb:26]:  
\<“b\r\n”\> expected but was  
.

4. Failure:  
test\_spawn\_without\_block(TestPTY)  
[/export/home/ksmakoto/ruby-git/test/test\_pty.rb:19]:  
\<“a\r\n”\> expected but was  
.  
=end
