()
| 204 | |
| 205 | #[test] |
| 206 | fn os_bounds_are_sane_on_this_platform() { |
| 207 | // Every shipped target has an OS implementation; the fallback budget |
| 208 | // is only for platforms the kernel is not built for. |
| 209 | let low = os_stack_low().expect("OS stack bounds available"); |
| 210 | let sp = current_sp(); |
| 211 | assert!(low < sp, "stack low {low:#x} must be below the current sp {sp:#x}"); |
| 212 | assert!(sp - low < 1 << 31, "implausible stack size {}", sp - low); |
| 213 | } |
| 214 | |
| 215 | #[test] |
| 216 | fn small_stack_reports_its_own_bounds() { |
nothing calls this directly
no test coverage detected