ruby-changes:66325
From: Yusuke <ko1@a...>
Date: Wed, 26 May 2021 18:04:44 +0900 (JST)
Subject: [ruby-changes:66325] 055ec5254d (master): Rescue NotImplementedError for a test of Thread#native_thread_id
https://git.ruby-lang.org/ruby.git/commit/?id=055ec5254d From 055ec5254dc79cfa5d9500b8c301751fe594e481 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Wed, 26 May 2021 18:02:06 +0900 Subject: Rescue NotImplementedError for a test of Thread#native_thread_id http://rubyci.s3.amazonaws.com/solaris10-gcc/ruby-master/log/20210526T070003Z.fail.html.gz ``` 1) Error: TestThread#test_thread_native_thread_id: NotImplementedError: native_thread_id() function is unimplemented on this machine /export/home/users/chkbuild/cb-gcc/tmp/build/20210526T070003Z/ruby/test/ruby/test_thread.rb:1338:in `native_thread_id' /export/home/users/chkbuild/cb-gcc/tmp/build/20210526T070003Z/ruby/test/ruby/test_thread.rb:1338:in `test_thread_native_thread_id' ``` --- test/ruby/test_thread.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb index d87160a..a16f066 100644 --- a/test/ruby/test_thread.rb +++ b/test/ruby/test_thread.rb @@ -1335,7 +1335,7 @@ q.pop https://github.com/ruby/ruby/blob/trunk/test/ruby/test_thread.rb#L1335 end def test_thread_native_thread_id - skip "don't support native_thread_id" unless (Thread.main.native_thread_id rescue nil) + skip "don't support native_thread_id" unless (begin; Thread.main.native_thread_id; rescue NotImplementedError; nil; end) assert_instance_of Integer, Thread.main.native_thread_id th1 = Thread.start{sleep} -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/