[#25384] test fail: drb/drb.rb:836:in `initialize': Address already in use - bind(2) (Errno::EADDRINUSE) — Tanaka Akira <akr@...17n.org>
test-all が Errno::EADDRINUSE で止まることがあります。
咳といいます。
In article <97B55E6C-5C05-11D9-A492-000D9350318C@mva.biglobe.ne.jp>,
咳といいます。
In article <B8BBFD48-5C15-11D9-A492-000D9350318C@mva.biglobe.ne.jp>,
[#25396] rand uniformity — Tanaka Akira <akr@...17n.org>
次のように、rand の結果があからさまに一様でない分布を示すことがあるようです。
In article <20050103233811.7dd92150.sheepman@tcn.zaq.ne.jp>,
[#25414] 1.9.0で使用済みソケットが回収されない? — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
山本です。
[#25430] 1.8 warn nonblocking IO#read and add IO#readpartial — Tanaka Akira <akr@...17n.org>
1.8 に以下の変更を行いたいんですが、どうでしょうか?
山本です。
In article <20050109063005.3048a4ba.tommy@tmtm.org>,
はじめまして。角と申します。
とみたです。
mput です。
とみたです。
まつもと ゆきひろです
とみたです。
まつもと ゆきひろです
[#25446] DATA.read skips some characters — SASADA Koichi <ko1@...>
ささだです。
なかだです。
こんにちは、なかむら(う)です。
[#25479] some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
山本です。
永井@知能.九工大です.
山本です。
永井@知能.九工大です.
山本です。
永井@知能.九工大です.
山本です。
永井@知能.九工大です.
山本です。
永井@知能.九工大です.
永井@知能.九工大です.
山本です。
こんにちは、なかむら(う)です。
山本です。
永井@知能.九工大です.
山本です。
永井@知能.九工大です.
永井@知能.九工大です.
山本です。
永井@知能.九工大です.
永井@知能.九工大です.
永井@知能.九工大です.
山本です。
永井@知能.九工大です.
永井@知能.九工大です.
山本です。
永井@知能.九工大です.
こんにちは、なかむら(う)です。
[#25486] process to merge ruby-dl2 — Takaaki Tateishi <ttate@...>
立石です。
まつもと ゆきひろです。
[#25500] priority between commandline option and RUBYOPT env variable — Hidetoshi NAGAI <nagai@...>
永井@知能.九工大です.
わたなべです。
永井@知能.九工大です.
[#25508] Fw: DateTime questions [newbie] — Yukihiro Matsumoto <matz@...>
まつもと ゆきひろです
ふなばです。
まつもと ゆきひろです
ふなばです。
まつもと ゆきひろです
> [ruby-talk:128124]によれば
[#25520] pack cannot convert nil into Integer — "horiguchi" <hiya@...>
はじめまして。堀口と申します。
[#25522] merge tcltklib and tk — Hidetoshi NAGAI <nagai@...>
永井@知能.九工大です.
こんにちは、なかむら(う)です。
こんにちは。
なかだです。
永井@知能.九工大です.
なかだです。
永井@知能.九工大です.
永井@知能.九工大です.
なかだです。
永井@知能.九工大です.
永井@知能.九工大です.
永井@知能.九工大です.
なかだです。
[#25574] flockの動作 (with win32 mod_ruby) — "Tokiwa" <tokiwa@...>
ときわです。
[#25587] imported Oniguruma 3.5.4 — Kazuo Saito <ksaito@...>
斉藤です。
[#25590] Can I copy doc/irb/irb.rd.ja to the reference Wiki? — sheepman <sheepman@...>
こんばんは、sheepman です。
けいじゅ@いしつかです.
こんにちは、sheepman です。
けいじゅ@いしつかです.
こんにちは、sheepman です。
けいじゅ@いしつかです.
まつもと ゆきひろです
永井@知能.九工大です.
まつもと ゆきひろです
[ruby-dev:25408] Re: 1.9.0でbcc版がコンパイルできない
山本です。
>普通のコンパイラはそのくらいなら最適化で消すでしょうから、影響
>はないと思います。
では、とりあえずそうしておきます。
# 個人的には、昔のバグとはいえこんなの(http://personal.sirma.bg/Jogy/bc5.html)
# もあったみたいで怖いのですが > __int64
ところで、色々試すうちに、下のようにして64bit整数のない環境にすると、
test/digest/test_digest.rb が正しく実行されないことに気づきました。
Index: Makefile.sub
===================================================================
RCS file: /src/ruby/bcc32/Makefile.sub,v
retrieving revision 1.67
diff -u -w -b -r1.67 Makefile.sub
--- Makefile.sub 17 Sep 2004 11:38:49 -0000 1.67
+++ Makefile.sub 5 Jan 2005 02:16:02 -0000
@@ -213,7 +213,7 @@
\#define SIZEOF_SHORT 2
\#define SIZEOF_LONG 4
\#define SIZEOF_LONG_LONG 0
-\#define SIZEOF___INT64 8
+\#define SIZEOF___INT64 0
\#define SIZEOF_OFF_T 4
\#define SIZEOF_VOIDP 4
\#define SIZEOF_FLOAT 4
これは digest/sha2 がコンパイルされないためですが、
digest/md5 や digest/sha1 などはコンパイルされるので、digest/sha2 用のテストだけ
スキップすべきだと思います。
E:\ruby-cvs\temp>test19 digest
..\ruby\test\digest/test_digest.rb:11:in `require': No such file to load -- dige
st/sha2 (LoadError)
from ..\ruby\test\digest/test_digest.rb:11
from E:/ruby-cvs/ruby/lib/test/unit/collector/dir.rb:84:in `require'
from E:/ruby-cvs/ruby/lib/test/unit/collector/dir.rb:84:in `collect_file
'
from E:/ruby-cvs/ruby/lib/test/unit/collector/dir.rb:66:in `recursive_co
llect'
from E:/ruby-cvs/ruby/lib/test/unit/collector/dir.rb:51:in `each'
from E:/ruby-cvs/ruby/lib/test/unit/collector/dir.rb:51:in `recursive_co
llect'
from E:/ruby-cvs/ruby/lib/test/unit/collector/dir.rb:26:in `collect'
from E:/ruby-cvs/ruby/lib/test/unit/autorunner.rb:61
from E:/ruby-cvs/ruby/lib/test/unit/autorunner.rb:55:in `[]'
from E:/ruby-cvs/ruby/lib/test/unit/autorunner.rb:192:in `run'
from ../ruby/bin/testrb:5
また、新しいテスト test/ruby/test_rand.rb も 64bit整数のない環境で失敗するようです。
Index: random.c
===================================================================
RCS file: /src/ruby/random.c,v
retrieving revision 1.35
diff -u -w -b -p -r1.35 random.c
--- random.c 4 Jan 2005 17:38:23 -0000 1.35
+++ random.c 5 Jan 2005 02:08:19 -0000
@@ -375,7 +375,7 @@ limited_big_rand(struct RBignum *limit)
val->sign = 1;
#if SIZEOF_BDIGITS == 2
# define BIG_GET32(big,i) (((BDIGIT *)(big)->digits)[(i)/2] | \
- ((i)/2+1 < (big)->len ? (((BDIGIT *)(big)->digits)[(i)/2+1] << 16)
+ ((i)/2+1 < (big)->len ? (((BDIGIT *)(big)->digits)[(i)/2+1] << 16) \
: 0))
# define BIG_SET32(big,i,d) ((((BDIGIT *)(big)->digits)[(i)/2] = (d) & 0xffff), \
((i)/2+1 < (big)->len ? (((BDIGIT *)(big)->digits)[(i)/2+1] = (d) >> 16) \
E:\ruby-cvs\no-int64>test19 ruby/test_rand.rb
Loaded suite test_rand.rb
Started
test_0x100000000(TestRand): .
test_0x1000000000000(TestRand): F
test_0x1000000000001(TestRand): F
test_0x100000001(TestRand): F
test_0x3fffffff(TestRand): .
test_0x3fffffffffffffff(TestRand): F
test_0x40000000(TestRand): .
test_0x4000000000000000(TestRand): F
test_0x4000000000000001(TestRand): F
test_0x40000001(TestRand): .
test_0xffffffff(TestRand): .
test_mt(TestRand): .
test_neg_0x10000(TestRand): .
test_neg_0x10000000000(TestRand): F
Finished in 0.161 seconds.
1) Failure:
test_0x1000000000000(TestRand)
[..\ruby\test\ruby/test_rand.rb:60:in `test_0x1000000000000'
..\ruby\test\ruby/test_rand.rb:56:in `each'
..\ruby\test\ruby/test_rand.rb:56:in `test_0x1000000000000']:
<11736396900911> expected but was
<281473227991599>.
2) Failure:
test_0x1000000000001(TestRand)
[..\ruby\test\ruby/test_rand.rb:71:in `test_0x1000000000001'
..\ruby\test\ruby/test_rand.rb:67:in `each'
..\ruby\test\ruby/test_rand.rb:67:in `test_0x1000000000001']:
<187121911899765> expected but was
<281474976710656>.
3) Failure:
test_0x100000001(TestRand)
[..\ruby\test\ruby/test_rand.rb:49:in `test_0x100000001'
..\ruby\test\ruby/test_rand.rb:48:in `each'
..\ruby\test\ruby/test_rand.rb:48:in `test_0x100000001']:
<2546248239> expected but was
<4294967296>.
4) Failure:
test_0x3fffffffffffffff(TestRand)
[..\ruby\test\ruby/test_rand.rb:82:in `test_0x3fffffffffffffff'
..\ruby\test\ruby/test_rand.rb:78:in `each'
..\ruby\test\ruby/test_rand.rb:78:in `test_0x3fffffffffffffff']:
<900450186894289455> expected but was
<4611686016678668847>.
5) Failure:
test_0x4000000000000000(TestRand)
[..\ruby\test\ruby/test_rand.rb:93:in `test_0x4000000000000000'
..\ruby\test\ruby/test_rand.rb:89:in `each'
..\ruby\test\ruby/test_rand.rb:89:in `test_0x4000000000000000']:
<900450186894289455> expected but was
<4611686016678668847>.
6) Failure:
test_0x4000000000000001(TestRand)
[..\ruby\test\ruby/test_rand.rb:104:in `test_0x4000000000000001'
..\ruby\test\ruby/test_rand.rb:100:in `each'
..\ruby\test\ruby/test_rand.rb:100:in `test_0x4000000000000001']:
<900450186894289455> expected but was
<4611686018427387904>.
7) Failure:
test_neg_0x10000000000(TestRand)
[..\ruby\test\ruby/test_rand.rb:111:in `test_neg_0x10000000000'
..\ruby\test\ruby/test_rand.rb:111:in `each'
..\ruby\test\ruby/test_rand.rb:111:in `test_neg_0x10000000000']:
<455570294424> expected but was
<1095520421528>.
14 tests, 47 assertions, 7 failures, 0 errors