summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-06 11:47:00 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-06 11:47:00 +0000
commitcef8a996bebd0a6102f92fc6c4976f282e1f64fa (patch)
tree09ec48bb1ef00b2b6151176ccaf0610ab274ec14
parentcd2a49f3c7e585b871cbac949be36d4bee7c0e31 (diff)
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
-rw-r--r--test/ruby/test_process.rb4
1 files changed, 3 insertions, 1 deletions
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 = $?
}