mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	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
This commit is contained in:
		
							parent
							
								
									cd2a49f3c7
								
							
						
					
					
						commit
						cef8a996be
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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 = $?
 | 
			
		||||
      }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue