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 <info@bnoordhuis.nl>
This commit is contained in:
Andrew Paprocki 2019-03-03 14:53:43 -05:00 committed by cjihrig
parent 874083d5b3
commit f0ed5df5e8
No known key found for this signature in database
GPG Key ID: 7434390BDBE9B9C5

View File

@ -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);