diff options
author | Jeremy Bettis <jbettis@google.com> | 2022-05-02 17:07:46 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-05-03 16:12:10 +0000 |
commit | f112c4b06340a832f7bf90961618dea2e7c0d04d (patch) | |
tree | e9984b7aeddc900f9e5b2336470db1413b1fa93b | |
parent | 8be870863a92c450b6ef5c6f736f88912bbcca24 (diff) | |
download | chrome-ec-f112c4b06340a832f7bf90961618dea2e7c0d04d.tar.gz |
zephyr: Disable optimization in drivers test cov
If coverage is enabled, disable optimization. This doesn't really matter
in the chroot, but with gcc it causes much better results. The default
optimization seems to remove most return statements from the coverage,
but does not remove them in the herobrine build, so those lines appear
as uncovered.
BRANCH=None
BUG=b:190519131
TEST=zmake test -c in docker image & chroot
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: I0b316f0033b5a24c8820861c63fb4599da14c436
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3621870
Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Yuval Peress <peress@google.com>
-rw-r--r-- | zephyr/test/drivers/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zephyr/test/drivers/CMakeLists.txt b/zephyr/test/drivers/CMakeLists.txt index ce9e9bb966..a762365475 100644 --- a/zephyr/test/drivers/CMakeLists.txt +++ b/zephyr/test/drivers/CMakeLists.txt @@ -71,3 +71,5 @@ target_sources(app PRIVATE ) add_subdirectory(isl923x) + +set_compiler_property(APPEND PROPERTY coverage -O0) |