[fatfs] Fix flake caused by fatfs shut-down.

Tests assume that as soon as a file system has been shutdown, the block
device is available to be reused. Fatfs had an issue where it would send
the shutdown response, before it had finished using the block device.
This CL fixes that.

Tested by adding a well placed sleep which would cause the test to fail
every time.

Also took the opportunity to fix some missing std::endl, and change from
cerr to cout because googletest using stdout rather than stderr for
logs.

Fixed: 62331
Change-Id: I40aa57b2605ec4e3fb67f5f7e9ae35dd79282d1c
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/442918
Commit-Queue: Chris Suter <csuter@google.com>
Reviewed-by: Simon Shields <simonshields@google.com>
Testability-Review: Simon Shields <simonshields@google.com>
11 files changed
tree: 32314883cf9a48130e6e12d67fb0516cdf847f38
  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. .gitattributes
  17. .gitignore
  18. .gn
  19. .style.yapf
  20. AUTHORS
  21. BUILD.gn
  22. CODE_OF_CONDUCT.md
  23. CONTRIBUTING.md
  24. LICENSE
  25. OWNERS
  26. PATENTS
  27. README.md
  28. 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.