From f0ed5df5e8c567cf97f5b0d64d1123940c1e394d Mon Sep 17 00:00:00 2001 From: Andrew Paprocki Date: Sun, 3 Mar 2019 14:53:43 -0500 Subject: [PATCH] test: remove call to floor() in test driver Using `floor()` instead of integer division causes the test driver to require linking against `libm` on Solaris. PR-URL: https://github.com/libuv/libuv/pull/2200 Reviewed-By: Ben Noordhuis --- test/test-loop-handles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-loop-handles.c b/test/test-loop-handles.c index 6471cd08..13109880 100644 --- a/test/test-loop-handles.c +++ b/test/test-loop-handles.c @@ -320,7 +320,7 @@ TEST_IMPL(loop_handles) { ASSERT(prepare_1_cb_called == ITERATIONS); ASSERT(prepare_1_close_cb_called == 1); - ASSERT(prepare_2_cb_called == floor(ITERATIONS / 2.0)); + ASSERT(prepare_2_cb_called == ITERATIONS / 2); ASSERT(prepare_2_close_cb_called == 1); ASSERT(check_cb_called == ITERATIONS);