[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>
5 files changed
tree: a31782ee51ac282e1367cbebfff88f6d2cd2de1e
  1. boards/
  2. build/
  3. bundles/
  4. docs/
  5. examples/
  6. infra/
  7. products/
  8. scripts/
  9. sdk/
  10. src/
  11. third_party/
  12. tools/
  13. zircon/
  14. .clang-format
  15. .clang-tidy
  16. .editorconfig
  17. .git-blame-ignore-revs
  18. .gitattributes
  19. .gitignore
  20. .gitmodules
  21. .gn
  22. .ignore
  23. analysis_options.yaml
  24. AUTHORS
  25. BUILD.gn
  26. CODE_OF_CONDUCT.md
  27. CONTRIBUTING.md
  28. fuchsia.code-workspace
  29. LICENSE
  30. OWNERS
  31. PATENTS
  32. pyproject.toml
  33. pyrightconfig.json
  34. README.md
  35. rustfmt.toml
  36. shac.star
  37. shac.textproto
README.md

Fuchsia

What is Fuchsia?

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.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.