diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-06 11:47:00 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-06 11:47:00 +0000 |
commit | cef8a996bebd0a6102f92fc6c4976f282e1f64fa (patch) | |
tree | 09ec48bb1ef00b2b6151176ccaf0610ab274ec14 /test | |
parent | cd2a49f3c7e585b871cbac949be36d4bee7c0e31 (diff) | |
download | ruby-cef8a996bebd0a6102f92fc6c4976f282e1f64fa.tar.gz |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_process.rb | 4 |
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 = $? } |