Commit 192e2f7
committed
CI: fix data_overflow test
Long story:
* This test was introduced
* `ci/script.sh` did not correctly check for failures, [SC2251]
* Thanks rust-embedded#404 for the tip!
* The FLASH size was increased, and the test incorrectly passed, but
nobody noticed.
* I modified the test in rust-embedded#505 which made it fail again, but for the
wrong reason. `ptr::read_volatile(ptr::addr_of!(RODATA))` reads the
entire array, which is not equivalent to the original code
`ptr::read_volatile(&RODATA as *const u8)` which read a single element
of the array.
* The test now failed, but the stack related overflow takes rustc a LONG
time to compile, and pushed our CI times to >30m.
These changes fix ci/scripts.sh to exit with a non-zero code if
data_overflow is passing, and makes data_overflow fail to compile for
the original reason, updating RODATA to reflect the increased FLASH
size.
[SC2251]: https://www.shellcheck.net/wiki/SC22511 parent 2fe5473 commit 192e2f7
2 files changed
+8
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
| 58 | + | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | | - | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | | - | |
26 | | - | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
0 commit comments