From 6c453d3211329df0c075e8453fb49dc63694648b Mon Sep 17 00:00:00 2001 From: StemCll Date: Wed, 16 Nov 2022 16:49:43 +0100 Subject: [PATCH] Update current code coverage for ARM in tests/integration_tests/build/test_coverage.py Signed-off-by: StemCll lydjotj6f@mozmail.com --- src/devices/src/virtio/net/test_utils.rs | 4 ++-- tests/integration_tests/build/test_coverage.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/devices/src/virtio/net/test_utils.rs b/src/devices/src/virtio/net/test_utils.rs index c9224fe7aa08..89375e225edc 100644 --- a/src/devices/src/virtio/net/test_utils.rs +++ b/src/devices/src/virtio/net/test_utils.rs @@ -434,10 +434,10 @@ pub mod test { desc.next.set(next_index); } - addr += len as u64; + addr += u64::from(len); // Add small random gaps between descriptor addresses in order to make sure we // don't blindly read contiguous memory. - addr += utils::rand::xor_pseudo_rng_u32() as u64 % 10; + addr += u64::from(utils::rand::xor_pseudo_rng_u32()) % 10; } // Mark the chain as available. diff --git a/tests/integration_tests/build/test_coverage.py b/tests/integration_tests/build/test_coverage.py index ce158b6b0394..6d566cdf438d 100644 --- a/tests/integration_tests/build/test_coverage.py +++ b/tests/integration_tests/build/test_coverage.py @@ -23,7 +23,7 @@ # Checkout the cpuid crate. In the future other # differences may appear. if utils.is_io_uring_supported(): - COVERAGE_DICT = {"Intel": 82.99, "AMD": 82.31, "ARM": 82.39} + COVERAGE_DICT = {"Intel": 82.99, "AMD": 82.31, "ARM": 82.41} else: COVERAGE_DICT = {"Intel": 80.15, "AMD": 79.48, "ARM": 79.60}