[Bug #2111] Error:test_rm_f(TestFileUtils)

Bug #2111: Error:test_rm_f(TestFileUtils)
http://redmine.ruby-lang.org/issues/show/2111

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-09-17 trunk 24982) [i686-linux]

rm_f e$B$N0z?t$N0UL#$,e(B FileUtils.rm_f e$B$He(B mkmf.rb e$B$Ne(B rm_f
e$B$G0c$&$?$a!"e(B
mkmf e$B$He(B rake e$B$,e(B require e$B$5$l$F$$$k$He(B test_rm_f
e$B$,e(B mkmf.rb e$B$Ne(B
rm_f e$B$Ge(B Dir[*files] e$B$Ne(B files
e$B$,G[Ns$NG[Ns$K$J$C$F$$$F%(%i!<$K$J$j$^$9!#e(B

rm_f e$B$N0c$$$H$7$F$Oe(B FileUtils.rm_f e$B$Oe(B
rm_f(list, options = {})
e$B$GJ#?t%U%!%$%k$OG[Ns$G$7$+;XDj$G$-$J$$$N$KBP$7$F!"e(B
mkmf.rb e$B$NJ}$Ne(B rm_f e$B$Oe(B
rm_f(*files)
e$B$H$J$C$F$$$F!"J#?t0z?t$G$b;XDj$G$-$k$h$&$K$J$C$F$$$^$9!#e(B

e$B$5$i$Ke(B mkmf.rb e$B$NJ}$Oe(B Dir.[] e$B$bDL$9$N$G!"%0%m%V$Ne(B
e$B%o%$%k%I%+!<%I$J$I$K$J$kJ8;z$,4^$^$l$F$$$k$H$-$Ne(B
e$B5sF0$,JQ$o$k$H;W$$$^$9!#e(B

% ruby-trunk -r rake -r mkmf -v test/fileutils/test_fileutils.rb -n
test_rm_f
ruby 1.9.2dev (2009-09-17 trunk 24982) [i686-linux]
Loaded suite test/fileutils/test_fileutils
Started
cp data/a tmp/rmsrc
cp data/all tmp/rmsrc
cp data/random tmp/rmsrc
cp data/zero tmp/rmsrc
E
Finished in 0.013124 seconds.

  1. Error:
    test_rm_f(TestFileUtils):
    TypeError: can’t convert Array into String
    test/fileutils/test_fileutils.rb:425:in `test_rm_f’

1 tests, 7 assertions, 0 failures, 1 errors, 0 skips
%

e$B%A%1%C%He(B #2111 e$B$,99?7$5$l$^$7$?!#e(B (by Nobuyoshi N.)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

Applied in changeset r24984.

http://redmine.ruby-lang.org/issues/show/2111

e$B%A%1%C%He(B #2111 e$B$,99?7$5$l$^$7$?!#e(B (by Kazuhiro NISHIYAMA)

e$B%9%F!<%?%9e(B Closede$B$+$ie(BOpene$B$KJQ99e(B

e$B8eH>$N7o$K$D$$$F%F%9%H$rDI2C$7$?$N$Ge(B reopen e$B$7$^$9!#e(B

% ruby-trunk test/fileutils/test_fileutils.rb -n test_rm_f
Loaded suite test/fileutils/test_fileutils
Started
.
Finished in 0.014927 seconds.

1 tests, 15 assertions, 0 failures, 0 errors, 0 skips
% ruby-trunk -r rake -r mkmf test/fileutils/test_fileutils.rb -n
test_rm_f
Loaded suite test/fileutils/test_fileutils
Started
cp data/a tmp/rmsrc
cp data/all tmp/rmsrc
cp data/random tmp/rmsrc
cp data/zero tmp/rmsrc
touch tmp/rmtmp1
touch tmp/rmtmp2
touch tmp/rmtmp3
touch tmp/rmtmp4
touch tmp/[rmtmp]
F
Finished in 0.018555 seconds.

  1. Failure:
    test_rm_f(TestFileUtils) [test/fileutils/test_fileutils.rb:447]:
    file not exist: tmp/[rmtmp].
    Expected block to return true value.

1 tests, 15 assertions, 1 failures, 0 errors, 0 skips


http://redmine.ruby-lang.org/issues/show/2111

e$B%A%1%C%He(B #2111 e$B$,99?7$5$l$^$7$?!#e(B (by Kazuhiro NISHIYAMA)

e$B%9%F!<%?%9e(B Closede$B$+$ie(BOpene$B$KJQ99e(B

e$B%?%$%_%s%0$,0-$+$C$?$N$G$b$&0lEYe(Breopene$B!#e(B

include e$B$9$k=gHV$K$h$C$Fe(B include e$B$7$?%/%i%9$He(B Object
e$B$N4V$Ke(B FileUtils
e$B$,F~$C$?$jF~$i$J$+$C$?$j$9$k$N$bLdBj$N860x$N0l$D$@$H;W$&$N$G$9$,!"$I$&$G$7$g$&$+!#e(B

% ruby-trunk -r fileutils -e ’
class C1
p ancestors
include FileUtils
p ancestors
require “rake”
p ancestors
end
class C2
p ancestors
include FileUtils
p ancestors
end’
[C1, Object, Kernel, BasicObject]
[C1, FileUtils, FileUtils::StreamUtils_, Object, Kernel, BasicObject]
[C1, FileUtils, FileUtils::StreamUtils_, Object, RakeFileUtils,
FileUtils, FileUtils::StreamUtils_, Kernel, BasicObject]
[C2, Object, RakeFileUtils, FileUtils, FileUtils::StreamUtils_, Kernel,
BasicObject]
[C2, Object, RakeFileUtils, FileUtils, FileUtils::StreamUtils_, Kernel,
BasicObject]
%

http://redmine.ruby-lang.org/issues/show/2111

e$B%A%1%C%He(B #2111 e$B$,99?7$5$l$^$7$?!#e(B (by Anonymous)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B

Applied in changeset r24987.

http://redmine.ruby-lang.org/issues/show/2111

e$B%A%1%C%He(B #2111 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BFeedbacke$B$KJQ99e(B

e$B$J$*$C$F$^$9$h$M!)e(B

http://redmine.ruby-lang.org/issues/show/2111

e$B%A%1%C%He(B #2111 e$B$,99?7$5$l$^$7$?!#e(B (by Kazuhiro NISHIYAMA)

e$B%9%F!<%?%9e(B Feedbacke$B$+$ie(BOpene$B$KJQ99e(B

e$BD>$C$F$$$J$$$h$&$K8+$($^$9!#e(B

% ruby-trunk -v
ruby 1.9.2dev (2009-10-22 trunk 25429) [i686-linux]
% ruby-trunk -r rake -r mkmf test/fileutils/test_fileutils.rb
(e$BN,e(B)

  1. Failure:
    test_rm_pathname(TestFileUtils) [test/fileutils/test_fileutils.rb:456]:
    file not exist: tmp/[rmtmp].
    Expected block to return true value.

72 tests, 371 assertions, 1 failures, 0 errors, 0 skips
%

http://redmine.ruby-lang.org/issues/show/2111

e$B%A%1%C%He(B #2111 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B

This issue was solved with changeset r26090.
Kazuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


http://redmine.ruby-lang.org/issues/show/2111

e$B%A%1%C%He(B #2111 e$B$,99?7$5$l$^$7$?!#e(B (by Kazuhiro NISHIYAMA)

include FileUtils e$B$r$7$?;~$Ne(B rm_f
e$B$N5sF0$r3NG’$9$k%F%9%H$N$O$:$J$N$Ke(B
FileUtils.rm_f e$B$r;H$&$h$&$KJQ99$7$F$bNI$$$N$G$7$g$&$+e(B?

http://redmine.ruby-lang.org/issues/show/2111

e$B%A%1%C%He(B #2111 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE)

include FileUtils e$B$r$7$?;~$Ne(B rm_f e$B$N5sF0$r3NG’$9$k%F%9%H$N$O$:$J$N$Ke(B

e$B$`!“$”$N9T$O$3$N%A%1%C%HMQ$G$9$+!#e(B
e$B$J$i$P$"$N9T$,B8:$9$k$3$H<+BN$,8m$j$G$7$g$&!#e(B
include e$B$N=gHV$N%F%9%H$,M
$7$$$J$i$Pe(B
e$BJL$KMQ0U$9$k$Y$-$G!“e(BFileUtils e$B$G$d$k$Y$-$G$O$”$j$^$;$s!#e(B

http://redmine.ruby-lang.org/issues/show/2111

e$B%A%1%C%He(B #2111 e$B$,99?7$5$l$^$7$?!#e(B (by Kazuhiro NISHIYAMA)

include e$B$N=gHV$N%F%9%H$,M_$7$$$J$i$Pe(B e$BJL$KMQ0U$9$k$Y$-$G!“e(BFileUtils e$B$G$d$k$Y$-$G$O$”$j$^$;$s!#e(B

include e$B$N=gHV$N%F%9%H$G$O$J$/!"e(B include FileUtils e$B$7$?e(B
FileUtils e$B$N%a%=%C%I$N%F%9%H$+$H;W$C$F$$$^$7$?!#e(B

e$B3N<B$Ke(B FileUtils e$B$N%a%=%C%I$r%F%9%H$7$?$$$N$J$ie(B include
e$B$N=gHV$N1F6A$r<u$1$J$$$h$&$K!"e(B include FileUtils
e$B$r$d$a$F!"B>$b$9$Y$Fe(B FileUtils.rm_f
e$B$J$I$K$7$?J}$,NI$$$N$G$O$J$$$G$7$g$&$+e(B?

http://redmine.ruby-lang.org/issues/show/2111