mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Thread#native_thread_id is very platform specific
This commit is contained in:
		
							parent
							
								
									b14f133054
								
							
						
					
					
						commit
						cb2323a983
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1,6 +1,8 @@
 | 
			
		|||
require_relative '../../spec_helper'
 | 
			
		||||
 | 
			
		||||
ruby_version_is "3.1" do
 | 
			
		||||
if ruby_version_is "3.1" and Thread.method_defined?(:native_thread_id)
 | 
			
		||||
  # This method is very platform specific
 | 
			
		||||
 | 
			
		||||
  describe "Thread#native_thread_id" do
 | 
			
		||||
    it "returns an integer when the thread is alive" do
 | 
			
		||||
      Thread.current.native_thread_id.should be_kind_of(Integer)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue