summaryrefslogtreecommitdiff
path: root/ext/pty/lib/expect.rb
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-09 15:04:54 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-09 15:04:54 +0000
commitd124dcf4eb245ced006ff4a3817322d8ecdbaea9 ()
treec628b6d7dc4de57dee45d5154c5d3665757ab4dd /ext/pty/lib/expect.rb
parent453c63c01bffcbf529689213d8b3a660928d2d3a (diff)
* ext/pty/lib/expect.rb: raise an error when argument is unexpected
type. based on a from Luiz Angelo Daros de Luca in [ruby-core:23464]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/pty/lib/expect.rb2
1 files changed, 2 insertions, 0 deletions
@@ -14,6 +14,8 @@ class IO
e_pat = Regexp.new(Regexp.quote(pat))
when Regexp
e_pat = pat
end
while true
if !IO.select([self],nil,nil,timeout) or eof? then