summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-20 22:30:39 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-20 22:30:39 +0000
commit8f78430da684797700a9f8dc0c101d253e3211ee (patch)
tree4f465e05ae4e200b7eda118d3007170111888da7
parentd6ec12417a1d554825a291dae10e8508a0cbbd06 (diff)
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
-rw-r--r--test/-ext-/gvl/test_last_thread.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/-ext-/gvl/test_last_thread.rb b/test/-ext-/gvl/test_last_thread.rb
index 3b297a5b311..7f75c0ef9c9 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'