チケット #272 が報告されました。 (by Kazuhiro NISHIYAMA)

----------------------------------------
Bug #272: test_chdir failed when Dir.tmpdir is symlink
http://redmine.ruby-lang.org/issues/show/272

起票者: Kazuhiro NISHIYAMA
ステータス: Open
優先度: Normal
担当者: 
カテゴリ: 
Target version: 


Dir.tmpdirが返すディレクトリがsymlinkのときにtest_chdirが失敗します。

% ln -s /tmp $HOME/symlink-tmpdir
% env TMPDIR=$HOME/symlink-tmpdir ruby-trunk -v test/ruby/test_dir.rb
ruby 1.9.0 (2008-07-14 revision 18060) [i686-linux]
Loaded suite test/ruby/test_dir
Started
.test/ruby/test_dir.rb:111: warning: conflicting chdir during another chdir block
F..........
Finished in 0.0631458779999999 seconds.

  1) Failure:
test_chdir(TestDir)
    [test/ruby/test_dir.rb:112:in `block in test_chdir'
     test/ruby/test_dir.rb:109:in `chdir'
     test/ruby/test_dir.rb:109:in `test_chdir']:
<"/home/kazu/symlink-tmpdir/__test_dir__20080714-13467-1l19gzu"> expected but was
<"/tmp/__test_dir__20080714-13467-1l19gzu">.

12 tests, 78 assertions, 1 failures, 0 errors


----------------------------------------
http://redmine.ruby-lang.org