Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

test: fix finished consumer number check

  • Loading branch information...
commit fa11db905a01f95fc01833d94987fe5790796745 1 parent 2be240d
@shigeki shigeki authored bnoordhuis committed
Showing with 4 additions and 3 deletions.
  1. +4 −3 test/test-condvar-consumer-producer.c
View
7 test/test-condvar-consumer-producer.c
@@ -82,9 +82,6 @@ static void producer(void* arg) {
uv_cond_signal(&full);
uv_mutex_unlock(&mutex);
}
-
- LOGF("finished_consumers: %d\n", finished_consumers);
- ASSERT(finished_consumers == MAX_CONSUMERS);
}
@@ -129,6 +126,10 @@ TEST_IMPL(consumer_producer) {
}
ASSERT(0 == uv_thread_join(&pthread));
+
+ LOGF("finished_consumers: %d\n", finished_consumers);
+ ASSERT(finished_consumers == MAX_CONSUMERS);
+
uv_cond_destroy(&empty);
uv_cond_destroy(&full);
uv_mutex_destroy(&mutex);
Please sign in to comment.
Something went wrong with that request. Please try again.