Skip to content

Commit

Permalink
Mark condition variable specs as pending for now
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite committed Dec 6, 2016
1 parent d20f420 commit 2e9c9b5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions spec/std/thread/condition_variable_spec.cr
@@ -1,7 +1,12 @@
require "spec"

# These specs are marked as pending until we add
# support for parallelism, where we'll see if we
# need condition variables.
#
# Also: review these specs!
describe Thread::ConditionVariable do
it "signals" do
pending "signals" do
mutex = Thread::Mutex.new
cond = Thread::ConditionVariable.new
pcond = Thread::ConditionVariable.new
Expand All @@ -12,6 +17,7 @@ describe Thread::ConditionVariable do
Thread.new do
mutex.synchronize do
waiting += 1
# TODO: why is this needed? Bug?
pcond.signal
cond.wait mutex
end
Expand All @@ -30,7 +36,7 @@ describe Thread::ConditionVariable do
threads.map &.join
end

it "broadcasts" do
pending "broadcasts" do
mutex = Thread::Mutex.new
cond = Thread::ConditionVariable.new
pcond = Thread::ConditionVariable.new
Expand Down

0 comments on commit 2e9c9b5

Please sign in to comment.