Bug #1976: Errors in test/fileutils/test_fileutils.rb
http://redmine.ruby-lang.org/issues/show/1976
e$B5/I<<Te(B: Kazuhiro NISHIYAMA
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
ruby -v: ruby 1.9.2dev (2009-08-21 trunk 24613) [i686-linux]
e$B4D6-$K$h$C$F$Oe(B test_fileutils.rb
e$B$G%(%i!<$K$J$k$3$H$,$"$k$h$&$G$9!#e(B
-
Error:
test_rm_f(TestFileUtils):
TypeError: can’t convert Array into String
/home/kazu/wc/ruby/trunk/test/fileutils/test_fileutils.rb:420:in
`test_rm_f’ -
Error:
test_rm_f(TestFileUtilsNoWrite):
TypeError: can’t convert Hash into String
/home/kazu/wc/ruby/trunk/test/fileutils/test_nowrite.rb:78:in
`test_rm_f’ -
Error:
test_rm_rf(TestFileUtilsNoWrite):
TypeError: can’t convert Hash into String
/home/kazu/wc/ruby/trunk/test/fileutils/test_nowrite.rb:84:in
`test_rm_rf’
e$B>u67$rD4$Y$F$_$k$He(B FileUtils::NoWrite e$B$Ne(B rm_rf e$B$Ne(B
super e$B$Ge(B mkmf.rb e$B$Ne(B rm_rf e$B$,8F$P$l$F$$$^$7$?!#e(B
e$B$=$N$H$-$Ne(B self.class.ancestors e$B$Oe(B
[TestFileUtilsNoWrite, FileUtils::NoWrite, Test::Unit::TestCase,
Test::Unit::Ass
ertions, MiniTest::Unit::TestCase, MiniTest::Assertions, Object,
JSON::Ext::Gene
rator::GeneratorMethods::Object, RakeFileUtils, FileUtils,
FileUtils::StreamUtil
s_, PP::ObjectMixin, Kernel, BasicObject]
e$B$H$J$C$F$$$F!"e(B FileUtils::NoWrite e$B$He(B FileUtils e$B$N4V$Ke(B
Object e$B$,F~$C$F$$$ke(B (e$B$3$3$Ke(B mkmf.rb e$B$Ge(B rm_rf
e$B$,Dj5A$5$l$F$$$ke(B) e$B$N$,860x$N$h$&$G$9!#e(B
e$B0J2<$N$h$&$K$9$k$H:F8=$G$-$^$9!#e(B
% ruby-trunk -r mkmf -r fileutils -e ’
include FileUtils
class C
include FileUtils::NoWrite
def hoge
p self.class.ancestors
rm_rf(“hoge”)
end
end
C.new.hoge’
[C, FileUtils::NoWrite, Object, FileUtils, FileUtils::StreamUtils_,
Kernel, BasicObject]
/home/kazu/opt/ruby-trunk/lib/ruby/1.9.1/mkmf.rb:201:in []': can't convert Hash into String (TypeError) from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.1/mkmf.rb:201:in
rm_rf’
from
/home/kazu/opt/ruby-trunk/lib/ruby/1.9.1/fileutils.rb:1556:in rm_rf' from -e:7:in
hoge’
from -e:10:in `’
%