commit | 732e2248d40de9e3a1cb5ed963cd4edfce8a6a3c | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@google.com> | Mon May 23 11:19:08 2022 -0700 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu May 26 03:21:29 2022 +0000 |
tree | 09f1e239e1eacd028a80a0f0fd77a8ae295a8d2d | |
parent | a80b43fb5100f72548d3f11cd8737e38563adee1 [diff] |
pw_unit_test: Check that a test is running when EXPECT is called Assert that a test is currently running when EXPECT_* or ASSERT_* is called. Previously, calling EXPECT_* from a static constructor would silently do nothing since no test event handler was set. Change-Id: I290747a944613e125fac6e935caf34df32fe01f7 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/95700 Reviewed-by: Keir Mierle <keir@google.com> Commit-Queue: Wyatt Hepler <hepler@google.com> Reviewed-by: Alexei Frolov <frolv@google.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/