Commit af28296
committed
buffer: handle libcsp reserved buffers
libcsp commit 5e02b22221 introduced a new function and changed how we
manage buffers. Specifically, it reserves two buffers for this new
function.
Use `csp_buffer_get_always()` in buffer-count tests to consume the
reserved buffers. Because `csp_buffer_get_always()` panics on
over-allocation, use `csp_buffer_get()` in over-allocation tests to
verify that two reserved buffers remain.
[1]: libcsp/libcsp@5e02b22
Signed-off-by: Yasushi SHOJI <[email protected]>1 parent 25aef1f commit af28296
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | | - | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | | - | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
0 commit comments