mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 02:26:16 +00:00
tests: Fix conversion warnings
This commit is contained in:
parent
d8970f25f9
commit
f0d5cc1670
|
@ -32,7 +32,7 @@ TEST_CASE("u_template_historybuf")
|
||||||
}
|
}
|
||||||
SECTION("behavior with one")
|
SECTION("behavior with one")
|
||||||
{
|
{
|
||||||
int32_t zero_inner_index;
|
int64_t zero_inner_index;
|
||||||
REQUIRE((zero_inner_index = u_id_ringbuffer_push_back(buffer, 0)) >= 0);
|
REQUIRE((zero_inner_index = u_id_ringbuffer_push_back(buffer, 0)) >= 0);
|
||||||
CHECK_FALSE(u_id_ringbuffer_is_empty(buffer));
|
CHECK_FALSE(u_id_ringbuffer_is_empty(buffer));
|
||||||
CHECK(1 == u_id_ringbuffer_get_size(buffer));
|
CHECK(1 == u_id_ringbuffer_get_size(buffer));
|
||||||
|
@ -94,8 +94,8 @@ TEST_CASE("u_template_historybuf")
|
||||||
|
|
||||||
SECTION("behavior with two")
|
SECTION("behavior with two")
|
||||||
{
|
{
|
||||||
int32_t zero_inner_index;
|
int64_t zero_inner_index;
|
||||||
int32_t one_inner_index;
|
int64_t one_inner_index;
|
||||||
REQUIRE((zero_inner_index = u_id_ringbuffer_push_back(buffer, 0)) >= 0);
|
REQUIRE((zero_inner_index = u_id_ringbuffer_push_back(buffer, 0)) >= 0);
|
||||||
REQUIRE((one_inner_index = u_id_ringbuffer_push_back(buffer, 1)) >= 0);
|
REQUIRE((one_inner_index = u_id_ringbuffer_push_back(buffer, 1)) >= 0);
|
||||||
REQUIRE(zero_inner_index != one_inner_index);
|
REQUIRE(zero_inner_index != one_inner_index);
|
||||||
|
@ -187,9 +187,9 @@ TEST_CASE("u_template_historybuf")
|
||||||
|
|
||||||
SECTION("algorithm behavior with 3")
|
SECTION("algorithm behavior with 3")
|
||||||
{
|
{
|
||||||
int32_t zero_inner_index;
|
int64_t zero_inner_index;
|
||||||
int32_t two_inner_index;
|
int64_t two_inner_index;
|
||||||
int32_t four_inner_index;
|
int64_t four_inner_index;
|
||||||
REQUIRE((zero_inner_index = u_id_ringbuffer_push_back(buffer, 0)) >= 0);
|
REQUIRE((zero_inner_index = u_id_ringbuffer_push_back(buffer, 0)) >= 0);
|
||||||
REQUIRE((two_inner_index = u_id_ringbuffer_push_back(buffer, 2)) >= 0);
|
REQUIRE((two_inner_index = u_id_ringbuffer_push_back(buffer, 2)) >= 0);
|
||||||
REQUIRE((four_inner_index = u_id_ringbuffer_push_back(buffer, 4)) >= 0);
|
REQUIRE((four_inner_index = u_id_ringbuffer_push_back(buffer, 4)) >= 0);
|
||||||
|
|
Loading…
Reference in a new issue