commit | 9f56449292f686e2f3dfcaefc3313d6de83430aa | [log] [tgz] |
---|---|---|
author | Alexei Frolov <frolv@google.com> | Wed Aug 16 20:20:01 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Aug 16 20:20:01 2023 +0000 |
tree | e9de7046f5e5ecaf0e94e722fae477585f6b3fdf | |
parent | db314ef0d07942b69591c251de0f12524963b0a0 [diff] |
pw_unit_test: Reset static value before running tests The test framework unit tests which verify the SetUpTestSuite and TearDownTestSuite functions set and check a static variable. If the tests are run multiple times in the same execution context, all subsequent runs will fail due to the value having been previously modified. This resets the value to its initial state before every test run. Bug: 296157327 Change-Id: I5387af75471af3095a32930ba12542deff8f1cea Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/166590 Reviewed-by: Erick Pfeifer <erickpfeifer@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com> Reviewed-by: Wyatt Hepler <hepler@google.com> Pigweed-Auto-Submit: 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/.