commit | 9cbad941c8092f0134bffda0280249ffbd750887 | [log] [tgz] |
---|---|---|
author | Anirudh Mathukumilli <rudymathu@google.com> | Mon Sep 30 18:42:56 2024 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Sep 30 18:42:56 2024 +0000 |
tree | a31782ee51ac282e1367cbebfff88f6d2cd2de1e | |
parent | 93483dd423a177d761c2d2df1f2f302b4de504a7 [diff] |
[utest][core] Move timer tests from bringup to core-tests Moves the timer tests previously found in //src/zircon/tests/timers into the core-tests, as they exclusively test the syscall surface for timers. This change is mostly a functional no-op, as it simply moves the timers.cc file over into the core tests. However, there are two changes: 1. The slack check in CheckInfo was modified from an equality check to a greater than or equal to. In other words, we now check that a timer's slack is greater than or equal to the slack we set it to. We need to do this because the core tests are run as both a standalone binary, where ZX_JOB_POL_TIMER_SLACK is not set, and as individual packages where the slack is set to 50 microseconds (see the elf_runner for more info: https://cs.opensource.google/fuchsia/fuchsia/+/main:src/sys/lib/elf_runner/src/lib.rs;l=60). 2. The name of the test suite was changed from TimersTest to Timer to match other core test suites. Having timer tests in the core-tests will help us test boot timers in future changes. Bug: 328306129 Change-Id: I0d63934d2e94b9b24a8262364a0cb6a81608717a Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1126657 Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com> Reviewed-by: Nick Maniscalco <maniscalco@google.com> Fuchsia-Auto-Submit: Anirudh Mathukumilli <rudymathu@google.com>
Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.
We expect everyone interacting with our project to respect our code of conduct.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.