ruby-changes:14735
From: akr <ko1@a...>
Date: Sat, 6 Feb 2010 20:50:00 +0900 (JST)
Subject: [ruby-changes:14735] Ruby:r26594 (trunk): fix a test.
akr 2010-02-06 20:47:00 +0900 (Sat, 06 Feb 2010) New Revision: 26594 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26594 Log: fix a test. OpenSolaris cannot remove the current directory. Modified files: trunk/test/ruby/test_process.rb Index: test/ruby/test_process.rb =================================================================== --- test/ruby/test_process.rb (revision 26593) +++ test/ruby/test_process.rb (revision 26594) @@ -1175,7 +1175,9 @@ 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 = $? } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/