[utest][threads] Finish conversion of tests to using zxtest instead of unittest

threads.cc had already been converted to using zxtest but
register-set.cc still used unittest.  That is actually risky, because
without an explicit main() function it is not well-defined whether
unittest's main() or zxtest's main() will get linked.

This was mostly automated, with some manual changes:

 * change helper functions: return void not bool; calls use
   ASSERT_NO_FATAL_FAILURES()
 * change EXPECT_EQ() calls where printf format string literals are
   required: merge the snprintf()s into the EXPECT_EQ() calls
 * ensure zxtest is not listed twice in the BUILD.gn file

Bug: 51652
Test: runs on CQ, but tested locally with:
  fx set bringup.x64 --with-base //garnet/packages/tests:zircon --with-base //bundles/bringup:tests
  fx build
  fx qemu -k -c zircon.autorun.boot=/boot/test/core-threads
Change-Id: Ie30dcbd10ef59b6e02161ec63fd5b7457c368165
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/404811
Reviewed-by: Scott Graham <scottmg@google.com>
Reviewed-by: George Kulakowski <kulakowski@google.com>
Testability-Review: George Kulakowski <kulakowski@google.com>
Commit-Queue: Mark Seaborn <mseaborn@google.com>
4 files changed
tree: d21c1a8a8cc6742693ca9b68b37417ff60d11fef
  1. boards/
  2. build/
  3. bundles/
  4. cts/
  5. docs/
  6. examples/
  7. garnet/
  8. products/
  9. scripts/
  10. sdk/
  11. src/
  12. third_party/
  13. tools/
  14. zircon/
  15. .clang-format
  16. .clang-tidy
  17. .gitattributes
  18. .gitignore
  19. .gn
  20. .style.yapf
  21. AUTHORS
  22. BUILD.gn
  23. CODE_OF_CONDUCT.md
  24. CONTRIBUTING.md
  25. LICENSE
  26. OWNERS
  27. PATENTS
  28. README.md
  29. rustfmt.toml
README.md

Fuchsia

Pink + Purple == Fuchsia (a new operating system)

What is Fuchsia?

Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.

Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.