diff options
Diffstat (limited to 'deps/uv/test/test-timer.c')
-rw-r--r-- | deps/uv/test/test-timer.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/deps/uv/test/test-timer.c b/deps/uv/test/test-timer.c index f26dae577f..aba050fd64 100644 --- a/deps/uv/test/test-timer.c +++ b/deps/uv/test/test-timer.c @@ -290,3 +290,14 @@ TEST_IMPL(timer_run_once) { MAKE_VALGRIND_HAPPY(); return 0; } + + +TEST_IMPL(timer_null_callback) { + uv_timer_t handle; + + ASSERT(0 == uv_timer_init(uv_default_loop(), &handle)); + ASSERT(UV_EINVAL == uv_timer_start(&handle, NULL, 100, 100)); + + MAKE_VALGRIND_HAPPY(); + return 0; +} |