Skip to content

Conversation

@sasdf
Copy link
Contributor

@sasdf sasdf commented Feb 6, 2026

The flash layout constants in several tests were hardcoded, assuming a 64K ROM_EXT. This caused tests to fail when linked for coverage, as the coverage-enabled ROM_EXT is 128K.

This PR replaces the hardcoded constants with calculated values or named constants that account for the size of the ROM_EXT.

The flash layout constants in several tests were hardcoded, assuming
a 64K ROM_EXT. This caused tests to fail when linked for coverage,
as the coverage-enabled ROM_EXT is 128K.

This change replaces the hardcoded constants with calculated values or
named constants that account for the size of the ROM_EXT.

Change-Id: I29f0796eec59d4fd9c70fdb0b72d3c70f17da9a4
Signed-off-by: Yi-Hsuan Deng <[email protected]>
@sasdf sasdf force-pushed the mgT29f0796e branch 2 times, most recently from a57238e to d14f4da Compare February 9, 2026 13:10
Under coverage mode, the ROM_EXT size increases, which can break the
flash layout assumptions in certain tests. This change introduces
specific constants for production and coverage builds and ensures that
owner_block unit tests use the production flash layout even when coverage
is enabled.

Change-Id: I52e17fe8fe17f2d98456a25a77c19066e2ee0703
Signed-off-by: Yi-Hsuan Deng <[email protected]>
@sasdf sasdf marked this pull request as ready for review February 9, 2026 17:17
@sasdf sasdf requested review from a team as code owners February 9, 2026 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants