pubsub: Fix ASAN failures

This CL restructures the pubsub unit tests in order to ensure all
objects referenced by subscribers outlive the pubsub, and that the
pubsub itself lives until the worker has been stopped.

Bug: 352163490
Change-Id: I9215e6dc90b23b172fca17face1489b6386e0af6
Reviewed-on: https://pigweed-internal-review.git.corp.google.com/c/pigweed/showcase/rp2/+/74148
Presubmit-Verified: CQ Bot Account <pigweed-internal-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alexei Frolov <frolv@google.com>
Reviewed-by: Ted Pudlik <tpudlik@google.com>
Commit-Queue: Aaron Green <aarongreen@google.com>
3 files changed
tree: c3d84d0834925fefbb0a21a55e52a207ee225274
  1. .github/
  2. .vscode/
  3. apps/
  4. device/
  5. modules/
  6. system/
  7. targets/
  8. tools/
  9. web_app/
  10. .bazelignore
  11. .bazelrc
  12. .bazelversion
  13. .buildifier.json
  14. .clang-format
  15. .clangd.shared
  16. .gitignore
  17. .pw_console.yaml
  18. AUTHORS
  19. BUILD.bazel
  20. CONTRIBUTING.md
  21. LICENSE
  22. MODULE.bazel
  23. OWNERS
  24. pigweed.json
  25. README.md
README.md

Sense

git clone https://pigweed.googlesource.com/pigweed/showcase/sense

Welcome to Pigweed Sense, a tour of key Pigweed components experienced through an imagined air quality product.

Please visit the tutorial to get started: https://pigweed.dev/docs/showcase/sense/tutorial/