Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
test: add 'is active?' checks to test-timer.c
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed May 25, 2012
1 parent 34445d0 commit ae9d4c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test-timer.c
Expand Up @@ -35,6 +35,7 @@ static void once_close_cb(uv_handle_t* handle) {
printf("ONCE_CLOSE_CB\n");

ASSERT(handle != NULL);
ASSERT(!uv_is_active(handle));

once_close_cb_called++;
}
Expand All @@ -45,6 +46,7 @@ static void once_cb(uv_timer_t* handle, int status) {

ASSERT(handle != NULL);
ASSERT(status == 0);
ASSERT(!uv_is_active((uv_handle_t*)handle));

once_cb_called++;

Expand All @@ -69,6 +71,7 @@ static void repeat_cb(uv_timer_t* handle, int status) {

ASSERT(handle != NULL);
ASSERT(status == 0);
ASSERT(uv_is_active((uv_handle_t*)handle));

repeat_cb_called++;

Expand Down

0 comments on commit ae9d4c2

Please sign in to comment.