commit | 0a1db341fc77c4843a7c978b5aa8c9dbaeacc67f | [log] [tgz] |
---|---|---|
author | pigweed-integration-roller <pigweed-integration-roller@pigweed.google.com.iam.gserviceaccount.com> | Mon Aug 02 20:48:02 2021 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Aug 02 21:03:23 2021 +0000 |
tree | eacfa51b6d61122d24f178c221049e543dc55694 | |
parent | 64f04bc4c5715d06b58415970479980a30cbdcf8 [diff] |
[roll third_party/pigweed] pw_assert: Prevent double evaluation in PW_CHECK_OK - Previously, the PW_CHECK_OK expression was evaluated twice: once in the if statement, and, when the CHECK failed, again in pw_StatusString. Now the status is stored in a variable before it is checked. - Update the multi-evaluation tests to avoid using global state. - Switch from #if PW_ASSERT_ENABLE_DEBUG to a constant to avoid duplication and the risk of code rot. - Add multi-evaluation tests for PW_CHECK_OK and PW_DCHECK_OK. Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/55504 third_party/pigweed Rolled-Commits: 6c65a17f6971f47..3d80922b40675a8 Roller-URL: https://ci.chromium.org/b/8839977846502673281 Cq-Cl-Tag: roller-builder:pigweed-experimental-roller Cq-Cl-Tag: roller-bid:8839977846502673281 CQ-Do-Not-Cancel-Tryjobs: true Change-Id: I3c28a77e0dac5eaac7670580f3e541af2a749df4 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/experimental/+/55780 Reviewed-by: Pigweed Integration Roller <pigweed-integration-roller@pigweed.google.com.iam.gserviceaccount.com> Commit-Queue: Pigweed Integration Roller <pigweed-integration-roller@pigweed.google.com.iam.gserviceaccount.com>
This repository contains experimental pigweed modules.
Clone this repo with --recursive
to get all required submodules.
git clone --recursive https://pigweed.googlesource.com/pigweed/experimental
This will pull the Pigweed source repository into third_party/pigweed
. If you already cloned but forgot to --recursive
run git submodule update --init
to pull all submodules.