Commit da51747
committed
[cov,test] Apply OT_NO_COVERAGE to sram exec test
When testing code that is copied and executed from SRAM, coverage
instrumentation can lead to crashes since the relative address
to coverage counters on SRAM becomes invalid.
This patch applies the `OT_NO_COVERAGE` attribute to the `test_stub`
function in `sram_exec_test.c` to prevent the compiler from inserting
coverage counters.
Change-Id: I55641d42b5a6113ec757d8c6ec7fab7f39556347
Signed-off-by: Yi-Hsuan Deng <[email protected]>1 parent 344e805 commit da51747
File tree
2 files changed
+3
-0
lines changed- sw/device/silicon_creator/rom_ext/e2e/handoff
2 files changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
0 commit comments