[#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:25383] test_copy_entry(TestFileUtils) fail: entry data/all != tmp/all

From: Tanaka Akira <akr@...17n.org>
Date: 2005-01-01 13:53:23 UTC
List: ruby-dev #25383
make test-all で次の失敗に出会いました。

  1) Failure:
test_copy_entry(TestFileUtils)
    [/home/akr/ruby/head-ruby/ruby/test/fileutils/fileasserts.rb:17:in `assert_same_entry'
     /home/akr/ruby/head-ruby/ruby/test/fileutils/fileasserts.rb:16:in `_wrap_assertion'
     /home/akr/ruby/head-ruby/ruby/test/fileutils/fileasserts.rb:16:in `assert_same_entry'
     ./fileutils/test_fileutils.rb:754:in `test_copy_entry'
     ./fileutils/test_fileutils.rb:751:in `each_sample_file'
     ./fileutils/test_fileutils.rb:145:in `each'
     ./fileutils/test_fileutils.rb:145:in `each_sample_file'
     ./fileutils/test_fileutils.rb:751:in `test_copy_entry']:
entry data/all != tmp/all

調べてみると、

Index: lib/fileutils.rb
===================================================================
RCS file: /src/ruby/lib/fileutils.rb,v
retrieving revision 1.51
diff -u -p -r1.51 fileutils.rb
--- lib/fileutils.rb	1 Jan 2005 08:59:48 -0000	1.51
+++ lib/fileutils.rb	1 Jan 2005 13:51:22 -0000
@@ -507,6 +507,7 @@ module FileUtils
 
     def _copy_content(src, dest)
       st = stat(src)
+      sleep 2
       File.open(src,  'rb') {|r|
         File.open(dest, 'wb', st.mode) {|w|
           fu_copy_stream0 r, w, (fu_blksize(st) || fu_default_blksize())

という変更を加えて、次のようにすると再現するようです。

% ./ruby -Ilib test/runner.rb test/fileutils/test_fileutils.rb -n test_copy_entry
Loaded suite test_fileutils.rb
Started
F
Finished in 2.011766 seconds.

  1) Failure:
test_copy_entry(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:754:in `test_copy_entry'
     ./test/fileutils/test_fileutils.rb:751:in `each_sample_file'
     ./test/fileutils/test_fileutils.rb:145:in `each'
     ./test/fileutils/test_fileutils.rb:145:in `each_sample_file'
     ./test/fileutils/test_fileutils.rb:751:in `test_copy_entry']:
entry data/a != tmp/a

1 tests, 2 assertions, 1 failures, 0 errors

sleep をいれて失敗するようになるのは変なんじゃないでしょうか。
-- 
[田中 哲][たなか あきら][Tanaka Akira]

In This Thread

Prev Next