[#25430] 1.8 warn nonblocking IO#read and add IO#readpartial — Tanaka Akira <akr@...17n.org>

1.8 に以下の変更を行いたいんですが、どうでしょうか?

29 messages 2005/01/08
[#25445] Re: 1.8 warn nonblocking IO#read and add IO#readpartial — Tanaka Akira <akr@...17n.org> 2005/01/09

In article <20050109063005.3048a4ba.tommy@tmtm.org>,

[#25479] some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>

山本です。

44 messages 2005/01/15
[#25488] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/22

永井@知能.九工大です.

[#25489] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/22

山本です。

[#25490] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/22

永井@知能.九工大です.

[#25517] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/25

山本です。

[#25519] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/25

永井@知能.九工大です.

[#25521] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/25

山本です。

[#25523] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/25

永井@知能.九工大です.

[#25530] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/25

山本です。

[#25537] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/26

永井@知能.九工大です.

[#25545] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/26

永井@知能.九工大です.

[#25546] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/26

山本です。

[#25547] Re: some problems on ext/tk/sample/**/*.rb — "U.Nakamura" <usa@...> 2005/01/26

こんにちは、なかむら(う)です。

[#25548] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/26

山本です。

[#25550] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/26

永井@知能.九工大です.

[#25553] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/26

山本です。

[#25556] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/26

永井@知能.九工大です.

[#25567] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/27

永井@知能.九工大です.

[#25569] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/27

山本です。

[#25578] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/28

永井@知能.九工大です.

[#25585] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/28

永井@知能.九工大です.

[#25605] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/31

永井@知能.九工大です.

[#25609] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/02/01

山本です。

[#25500] priority between commandline option and RUBYOPT env variable — Hidetoshi NAGAI <nagai@...>

永井@知能.九工大です.

13 messages 2005/01/25

[#25522] merge tcltklib and tk — Hidetoshi NAGAI <nagai@...>

永井@知能.九工大です.

32 messages 2005/01/25
[#25552] Re: merge tcltklib and tk — nobu@... 2005/01/26

なかだです。

[#25555] Re: merge tcltklib and tk — Hidetoshi NAGAI <nagai@...> 2005/01/26

永井@知能.九工大です.

[#25557] Re: merge tcltklib and tk — nobu@... 2005/01/26

なかだです。

[#25561] Re: merge tcltklib and tk — Hidetoshi NAGAI <nagai@...> 2005/01/27

永井@知能.九工大です.

[#25566] Re: merge tcltklib and tk — Hidetoshi NAGAI <nagai@...> 2005/01/27

永井@知能.九工大です.

[#25590] Can I copy doc/irb/irb.rd.ja to the reference Wiki? — sheepman <sheepman@...>

こんばんは、sheepman です。

16 messages 2005/01/29
[#25591] Re: Can I copy doc/irb/irb.rd.ja to the reference Wiki? — keiju@... (石塚圭樹) 2005/01/29

けいじゅ@いしつかです.

[#25592] irb history saving feature is not in ruby 1.8 — sheepman <sheepman@...> 2005/01/30

こんにちは、sheepman です。

[#25593] Re: irb history saving feature is not in ruby 1.8 — keiju@... (石塚圭樹) 2005/01/30

けいじゅ@いしつかです.

[#25594] Re: irb history saving feature is not in ruby 1.8 — sheepman <sheepman@...> 2005/01/30

こんにちは、sheepman です。

[#25595] Re: irb history saving feature is not in ruby 1.8 — keiju@... (石塚圭樹) 2005/01/30

けいじゅ@いしつかです.

[ruby-dev:25440] test_mkdir(TestFileUtils) fails on NetBSD 2.0

From: Tanaka Akira <akr@...17n.org>
Date: 2005-01-08 18:51:19 UTC
List: ruby-dev #25440
NetBSD 2.0 で test_mkdir(TestFileUtils) が失敗します。
http://www.rubyist.net/~akr/ab/netbsd-2.0/ruby-trunk/log/20050108-144001.gz

  1) Error:
test_mkdir(TestFileUtils):
Errno::EPERM: Operation not permitted - tmp/tmp
    /home/akr/autobuild/tmp/autobuild/ruby-trunk/20050108-144001/lib/ruby/1.9/fileutils.rb:220:in `chmod'
    /home/akr/autobuild/tmp/autobuild/ruby-trunk/20050108-144001/lib/ruby/1.9/fileutils.rb:220:in `fu_mkdir'
    /home/akr/autobuild/tmp/autobuild/ruby-trunk/20050108-144001/lib/ruby/1.9/fileutils.rb:161:in `mkdir'
    /home/akr/autobuild/tmp/autobuild/ruby-trunk/20050108-144001/lib/ruby/1.9/fileutils.rb:160:in `each'
    /home/akr/autobuild/tmp/autobuild/ruby-trunk/20050108-144001/lib/ruby/1.9/fileutils.rb:160:in `mkdir'
    ./test/fileutils/test_fileutils.rb:599:in `test_mkdir'

  2) Failure:
test_mkdir_p(TestFileUtils) [./test/fileutils/test_fileutils.rb:670]:
<4095> expected but was
<493>.

調べてみると、どうやらファイルを作った時に group が親ディレクトリから
継承されるという BSD 流の挙動が想定されていないようです。

% mkdir /tmp/tst
% ls -ld /tmp /tmp/tst
drwxrwxrwt  6 root  wheel  512 Jan  9 03:41 /tmp
drwxr-xr-x  2 akr   wheel  512 Jan  9 03:41 /tmp/tst
% id
uid=1000(akr) gid=100(users) groups=100(users)
% uname -a
NetBSD netbsd20.home 2.0 NetBSD 2.0 (GENERIC) #0: Wed Dec  1 10:58:25 UTC 2004  builds@build:/big/builds/ab/netbsd-2-0-RELEASE/i386/200411300000Z-obj/big/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386

Linux でも、/tmp に setgid bit を立てて BSD 流の挙動にすると
test_mkdir が失敗します。

% sudo chmod g+s /tmp
% ./ruby test/runner.rb test/fileutils/test_fileutils.rb
Loaded suite test_fileutils.rb
Started
..........F....F..........
Finished in 0.668179 seconds.

  1) Failure:
test_cp_r(TestFileUtils)
    [/home/akr/ruby/tmp-ruby/ruby/test/fileutils/fileasserts.rb:17:in `assert_same_entry'
     /home/akr/ruby/tmp-ruby/ruby/test/fileutils/fileasserts.rb:16:in `_wrap_assertion'
     /home/akr/ruby/tmp-ruby/ruby/test/fileutils/fileasserts.rb:16:in `assert_same_entry'
     ./test/fileutils/test_fileutils.rb:243:in `test_cp_r'
     ./test/fileutils/test_fileutils.rb:242:in `each'
     ./test/fileutils/test_fileutils.rb:242:in `test_cp_r']:
entry data/a != tmp2/a

  2) Failure:
test_mkdir(TestFileUtils) [./test/fileutils/test_fileutils.rb:601]:
<4095> expected but was
<3071>.

26 tests, 251 assertions, 2 failures, 0 errors
zsh: exit 1     ./ruby test/runner.rb test/fileutils/test_fileutils.rb
% sudo chmod g-s /tmp
% uname -a
Linux serein 2.4.20-686 #1 Mon Jan 13 22:22:30 EST 2003 i686 GNU/Linux

この BSD 流の挙動は POSIX で許されているため、テストが失敗するのは変で
はないでしょうか。

あと、ついでですが、entry X != Y というメッセージで何が違ってるのか表
示するといいんじゃないかと思います。
-- 
[田中 哲][たなか あきら][Tanaka Akira]

In This Thread

Prev Next