Siena. ?????B

OS/2 with EMX ?? test/fileutils ?????????????????????G???[???o?????B

?N???????J?????g?f?B???N?g???? Dir.tmpdir ????????
?h???C?u?????????Ateardown ?? tmproot ?????????s???????B
???????ADir.chdir @prevdir ?????? tmproot ???h???C?u??
?J?????g?f?B???N?g???????????????????????????B
tmproot ???h???C?u???J?????g?f?B???N?g?????????????????X????
?K?v???????????BDOSISH ?S?????????????????????v???????B

test_cmp(TestFileUtils):
Errno::EBUSY: Resource busy - F:/tmp/fileutils.rb.25539
    T:/lib/ruby/1.8/fileutils.rb:588:in `rmdir'
    T:/lib/ruby/1.8/fileutils.rb:588:in `remove_dir'
    T:/lib/ruby/1.8/fileutils.rb:539:in `rm_r'
    T:/lib/ruby/1.8/fileutils.rb:531:in `each'
    T:/lib/ruby/1.8/fileutils.rb:531:in `rm_r'
    T:/lib/ruby/1.8/fileutils.rb:555:in `rm_rf'
    ./fileutils/test_fileutils.rb:55:in `my_rm_rf'
    ./fileutils/test_fileutils.rb:74:in `teardown'

?? DOSISH ?????????????????????????????????ADOSISH ????
Dir.tmpdir ???J?????g?h???C?u???????????????????????????B
???O???????????????????????X?N???v?g???????????????C?????????B


?????????A??????????p?X???????? "/" ??????????????????s???????B
???j?b?g?e?X?g???? rm_r 'tmpdatadir' ?? rm_r 'tmpdatadir/' ??
?????????????????????????????????????????????AC ???R?[?h??
???????e?X?g???????????A?????? rmdir() ???s???????B
dir.c ?? dir_s_rmdir() ?? sub( %r{[/\\]$}, '' ) ??????
?s???????????????v???????????A?????????????????B
?????????p?b?`???????????????A?????????????????????B

test_rm_r(TestFileUtils):
Errno::ENOENT: No such file or directory - tmpdatadir/
    T:/lib/ruby/1.8/fileutils.rb:588:in `rmdir'
    T:/lib/ruby/1.8/fileutils.rb:588:in `remove_dir'
    T:/lib/ruby/1.8/fileutils.rb:539:in `rm_r'
    T:/lib/ruby/1.8/fileutils.rb:531:in `each'
    T:/lib/ruby/1.8/fileutils.rb:531:in `rm_r'
    ./fileutils/test_fileutils.rb:328:in `test_rm_r'



Index: ruby/test/fileutils/test_fileutils.rb =================================================================== RCS file: /src/ruby/test/fileutils/test_fileutils.rb,v retrieving revision 1.14 diff -u -p -2 -r1.14 test_fileutils.rb --- ruby/test/fileutils/test_fileutils.rb 11 Dec 2003 12:07:17 -0000 1.14 +++ ruby/test/fileutils/test_fileutils.rb 11 Dec 2003 16:29:10 -0000 @@ -70,4 +70,5 @@ class TestFileUtils < Test::Unit::TestCa def teardown tmproot = Dir.pwd + Dir.chdir Dir.tmpdir Dir.chdir @prevdir my_rm_rf tmproot Index: ruby/test/fileutils/test_nowrite.rb =================================================================== RCS file: /src/ruby/test/fileutils/test_nowrite.rb,v retrieving revision 1.4 diff -u -p -2 -r1.4 test_nowrite.rb --- ruby/test/fileutils/test_nowrite.rb 25 Nov 2003 11:02:30 -0000 1.4 +++ ruby/test/fileutils/test_nowrite.rb 11 Dec 2003 16:29:10 -0000 @@ -39,4 +39,5 @@ class TestNoWrite < Test::Unit::TestCase def teardown tmproot = Dir.pwd + Dir.chdir Dir.tmpdir Dir.chdir @prevdir my_rm_rf tmproot
--- Siena. <mailto:siena / faculty.chiba-u.jp>