[#7872] Nonblocking socket-connect — "Francis Cianfrocca" <garbagecat10@...>

All, I needed a nonblocking socket connect for my asynchronous-event

18 messages 2006/05/14
[#7873] Re: Nonblocking socket-connect — Tanaka Akira <akr@...17n.org> 2006/05/14

In article <3a94cf510605140559l7baa0205le341dac4f47d424b@mail.gmail.com>,

[#7874] Re: Nonblocking socket-connect — "Francis Cianfrocca" <garbagecat10@...> 2006/05/15

How about introducing the method Socket#set_nonblocking, or alternatively

[#7875] Re: Nonblocking socket-connect — Yukihiro Matsumoto <matz@...> 2006/05/15

Hi,

[#7876] Re: Nonblocking socket-connect — "Francis Cianfrocca" <garbagecat10@...> 2006/05/15

Well, it's ok then. I'm comfortable adding in the nonblocking

[#7877] Re: Nonblocking socket-connect — Yukihiro Matsumoto <matz@...> 2006/05/15

Hi,

[ ruby-Bugs-4339 ] Ruby fails float 80 test in stable tarball (2 May 2006) when compiled with Mingw

From: noreply@...
Date: 2006-05-02 18:56:55 UTC
List: ruby-core #7807
Bugs item #4339, was opened at 2006-05-02 19:56
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=4339&group_id=426

Category: Core
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Jos辿 Soares Augusto (jasa)
Assigned to: Nobody (None)
Summary: Ruby fails float 80 test in stable tarball (2 May 2006) when compiled with Mingw

Initial Comment:
Hi all

After compiling Ruby stable with Mingw I get

$ ./ruby -v
ruby 1.8.4 (2006-05-01) [i386-mingw32]

the 'make check' command produces:

$ make check
not ok float 80 -- ./sample/test.rb:1209
test failed
make: *** [test] Error 1

I changed the sample/test.rb code to have more info on the issue:

........ start at line 1204 in sample/test.rb .....

#s = "3.7517675036461267e+17"
#test_ok(s == sprintf("%.16e", s.to_f))

# NEXT 2 LINES ADDED BY ME #######
print ">>>",f,"\n"
print ">>>",sprintf("%.16e", f).to_f,"\n"

f = 3.7517675036461267e+17
test_ok(f == sprintf("%.16e", f).to_f)

.............................................

The result:

$ ./ruby sample/test.rb 
assignment
ok 1
ok 2
ok 3
.......................
ok 77
ok 78
ok 79
>>>3.75176750364613e+017
>>>3.75176750364613e+017
not ok float 80 -- sample/test.rb:1209
bignum
ok 1
...........................

Apparently the two strings are equal. Has this something
to do with the '==' operator?

Thanks 

Jos辿 Soares Augusto

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=4339&group_id=426

In This Thread

Prev Next