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:
parent
874083d5b3
commit
f0ed5df5e8
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user