[kernel][job]: Make OOM Killer Test less brittle.

The OOMKiller says it will kill jobs lower in the tree first( that is
those with lowest height), this establishes a dependency on how the
sorting implementation deals with elements at the same height.

Instead of checking the state after each kill request, what we do is
assert on the initial and final state(hierarchy wise) and for each
intemediate step, we just verify that a job at the right height was
killed. This removes the need to deal with any sort of combination of
which job was killed, and just reduce it to there are X jobs at this
height, at each each intermediate step there should be Y jobs at this
height.

Updated Lock acquisition used during test to take LockOrder.

Test: k ut job
Change-Id: Icbaeaa4058364337a20c229d2de737b02b91ae44
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/570064
Commit-Queue: Gianfranco Valentino <gevalentino@google.com>
Reviewed-by: Nick Maniscalco <maniscalco@google.com>
2 files changed
tree: bf61e22f610ec7f9b5a03930027fdf18574f7d8a
  1. boards/
  2. build/
  3. bundles/
  4. docs/
  5. examples/
  6. garnet/
  7. products/
  8. scripts/
  9. sdk/
  10. src/
  11. third_party/
  12. tools/
  13. zircon/
  14. .clang-format
  15. .clang-tidy
  16. .git-blame-ignore-revs
  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.

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.