1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fix a test.

OpenSolaris cannot remove the current directory.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2010-02-06 11:47:00 +00:00
parent cd2a49f3c7
commit cef8a996be

View file

@ -1175,7 +1175,9 @@ class TestProcess < Test::Unit::TestCase
Dir.mkdir("vd")
status = nil
Dir.chdir("vd") {
Dir.rmdir("#{d}/vd")
dir = "#{d}/vd"
# OpenSolaris cannot remove the current directory.
system(RUBY, "-e", "Dir.chdir '..'; Dir.rmdir #{dir.dump}")
system({"RUBYLIB"=>nil}, RUBY, "-e", "exit true")
status = $?
}