From ae9d4c2aabb01691bd7eecacbf65e5a82b611b64 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sat, 26 May 2012 01:57:49 +0200 Subject: [PATCH] test: add 'is active?' checks to test-timer.c --- test/test-timer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test-timer.c b/test/test-timer.c index c961aff4..3436cec5 100644 --- a/test/test-timer.c +++ b/test/test-timer.c @@ -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++; } @@ -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++; @@ -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++;