From cef8a996bebd0a6102f92fc6c4976f282e1f64fa Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 6 Feb 2010 11:47:00 +0000 Subject: [PATCH] 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 --- test/ruby/test_process.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 57ffdf958c..c95c58f788 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -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 = $? }