pw_unit_test: Do not print contents of unknown objects Objects may contain uninitialized data (e.g. std::optional), which should not be accessed, even just to print the bytes. Fixes: b/303664953 Change-Id: I5427109fefde8c3f2df0a6d02065e55ac9648e7b Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/174911 Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com> Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com> Reviewed-by: Taylor Cramer <cramertj@google.com> Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.