Openssl test failures on ruby_1_8

e$B$3$s$K$A$O!"$J$+$`$ie(B(e$B$&e(B)e$B$G$9!#e(B

4e$B%v7n$[$IA0$+$i!“e(Bruby_1_8e$B$Ne(Btest/openssl/test_pair.rbe$B$Ge(BFe$B$,e(B4e$B$De(B
e$B=P$k$h$&$K$J$C$F$$$^$9e(B(ruby_1_8_5e$B$de(Bruby_1_8_6e$B$OLdBj$”$j$^$;$se(B)e$B!#e(B

e$B$3$l$Oe(Br12496e$B$N!Ve(Bimport OpenSSL from
trunke$B!W$H$$$&e(Bcommite$B$G!"e(B1.8
e$B$He(B1.9e$B$Ne(BEOFe$BMm$_$N07$$$N0c$$$r9MN8$;$:$Ke(Btrunke$B$+$i4]$4$H%^!<%8$,e(B
e$B9T$o$l$?$N$,860x$G$9!#e(B

e$B$J$s$+A0$K$b;XE&$7$?$h$&$J5$$b$9$k$7!"$7$h$&$H;W$C$?$^$^K:$le(B
e$B$F$$$?$h$&$J5$$b$9$k$N$G$9$,!";W$$=P$7$F$7$^$C$?$N$G%Q%C%A$re(B
e$B=P$7$F$*$-$^$9!#e(B

Tue Oct 9 13:06:06 2007 NAKAMURA Usaku [email protected]

  • ext/openssl/lib/openssl/buffering.rb (read, readpartial): revert
    r12496. handling EOF is a little differnt in ruby 1.8 and ruby 1.9.

Index: ext/openssl/lib/openssl/buffering.rb

— ext/openssl/lib/openssl/buffering.rb (revision 13660)
+++ ext/openssl/lib/openssl/buffering.rb (working copy)
@@ -57,10 +57,10 @@ module Buffering
if size == 0
if buf
buf.clear

  •    return buf
     else
    
  •    return ""
    
  •    buf = ""
     end
    
  •  return @eof ? nil : buf
    
    end
    until @eof
    break if size && size <= @rbuffer.size
    @@ -78,10 +78,10 @@ module Buffering
    if maxlen == 0
    if buf
    buf.clear
  •    return buf
     else
    
  •    return ""
    
  •    buf = ""
     end
    
  •  return @eof ? nil : buf
    
    end
    if @rbuffer.empty?
    begin

e$B$=$l$G$O!#e(B

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs