From 8f78430da684797700a9f8dc0c101d253e3211ee Mon Sep 17 00:00:00 2001 From: normal Date: Fri, 20 Jul 2018 22:30:39 +0000 Subject: test/-ext-/gvl/test_last_thread.rb: skip under MJIT Spurious wakeup is unavoidable with MJIT; and any real code must be able to deal with spurious wakeup anyways. [ruby-core:87882] https://bugs.ruby-lang.org/issues/14901 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/-ext-/gvl/test_last_thread.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/-ext-/gvl/test_last_thread.rb b/test/-ext-/gvl/test_last_thread.rb index 3b297a5b31..7f75c0ef9c 100644 --- a/test/-ext-/gvl/test_last_thread.rb +++ b/test/-ext-/gvl/test_last_thread.rb @@ -3,6 +3,9 @@ class TestLastThread < Test::Unit::TestCase # [Bug #11237] def test_last_thread + if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled? + skip 'spurious wakeup unavoidable with MJIT' + end assert_separately([], <<-"end;") #do require '-test-/gvl/call_without_gvl' -- cgit v1.2.3