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:
parent
090e2130d3
commit
1346e39ce6
@ -3,6 +3,10 @@ describe :thread_exit, shared: true do
|
|||||||
ScratchPad.clear
|
ScratchPad.clear
|
||||||
end
|
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
|
it "kills sleeping thread" do
|
||||||
sleeping_thread = Thread.new do
|
sleeping_thread = Thread.new do
|
||||||
sleep
|
sleep
|
||||||
@ -173,4 +177,6 @@ describe :thread_exit, shared: true do
|
|||||||
t.join.should == t
|
t.join.should == t
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
end # platform_is_not :mingw
|
||||||
end
|
end
|
||||||
|
@ -3,9 +3,5 @@ require_relative 'fixtures/classes'
|
|||||||
require_relative 'shared/exit'
|
require_relative 'shared/exit'
|
||||||
|
|
||||||
describe "Thread#terminate" do
|
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
|
it_behaves_like :thread_exit, :terminate
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user