Skip Semaphore#value test on Mac OS X where it is unsupported.
This commit is contained in:
parent
60b1cd8e53
commit
0aab64eaff
|
@ -58,6 +58,7 @@ module ProcessShared
|
||||||
end
|
end
|
||||||
|
|
||||||
describe '#post and #wait' do
|
describe '#post and #wait' do
|
||||||
|
unless FFI::Platform.mac?
|
||||||
it 'increments and decrements the value' do
|
it 'increments and decrements the value' do
|
||||||
Semaphore.open(0) do |sem|
|
Semaphore.open(0) do |sem|
|
||||||
10.times do |i|
|
10.times do |i|
|
||||||
|
@ -72,6 +73,7 @@ module ProcessShared
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
describe '#try_wait' do
|
describe '#try_wait' do
|
||||||
it 'returns immediately with non-zero semaphore' do
|
it 'returns immediately with non-zero semaphore' do
|
||||||
|
|
Loading…
Reference in New Issue