Skip to content

Commit

Permalink
fix a test.
Browse files Browse the repository at this point in the history
OpenSolaris cannot remove the current directory.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
akr committed Feb 6, 2010
1 parent cd2a49f commit cef8a99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/ruby/test_process.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,9 @@ def test_no_curdir
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 = $?
}
Expand Down

0 comments on commit cef8a99

Please sign in to comment.