mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Get rid of a test error on Windows caused by r60417
* test/testunit/test_parallel.rb (teardown): this code seems to allow `Errno::EPIPE` from @worker_in. in such case, `close` may also raise the same exception. I'm not confident in this conclusion and still doubt that we should revert r60417 instead of this commit or not. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									fdb771d82d
								
							
						
					
					
						commit
						8a67b59c31
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		|  | @ -34,8 +34,12 @@ module TestParallel | |||
|         end | ||||
|       end | ||||
|     ensure | ||||
|       @worker_in.close | ||||
|       @worker_out.close | ||||
|       begin | ||||
|         @worker_in.close | ||||
|         @worker_out.close | ||||
|       rescue Errno::EPIPE | ||||
|         # may already broken and rescue'ed in above code | ||||
|       end | ||||
|     end | ||||
| 
 | ||||
|     def test_run | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 usa
						usa