1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

spec/../shared/exit.rb: move the mingw guard to here

from terminate_spec.rb, as suggested here:
c7220bd3de (commitcomment-31068714)

to guard other inclusions.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
k0kubun 2018-10-27 14:06:44 +00:00
parent 090e2130d3
commit 1346e39ce6
2 changed files with 7 additions and 5 deletions

View file

@ -3,6 +3,10 @@ describe :thread_exit, shared: true do
ScratchPad.clear
end
# This spec randomly kills mspec worker like: https://ci.appveyor.com/project/ruby/ruby/builds/19390874/job/wv1bsm8skd4e1pxl
# TODO: Investigate the cause or at least print helpful logs, and remove this `platform_is_not` guard.
platform_is_not :mingw do
it "kills sleeping thread" do
sleeping_thread = Thread.new do
sleep
@ -173,4 +177,6 @@ describe :thread_exit, shared: true do
t.join.should == t
end
end
end # platform_is_not :mingw
end

View file

@ -3,9 +3,5 @@ require_relative 'fixtures/classes'
require_relative 'shared/exit'
describe "Thread#terminate" do
# This spec randomly kills mspec worker like: https://ci.appveyor.com/project/ruby/ruby/builds/19390874/job/wv1bsm8skd4e1pxl
# TODO: Investigate the cause or at least print helpful logs, and remove this `platform_is_not` guard.
platform_is_not :mingw do
it_behaves_like :thread_exit, :terminate
end
it_behaves_like :thread_exit, :terminate
end