Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
test_pipe_avail.c File Reference
#include <zephyr/ztest.h>
static ZTEST_DMEM unsigned char data [] = "abcdefgh"
 Tests for the Pipe read / write availability.
 
static struct k_pipe pipe
 
static struct k_pipe bufferless
 
static struct k_pipe bufferless1
 
 ZTEST (pipe_api, test_pipe_avail_no_buffer)
 Pipes with no buffer or size 0 should return 0 bytes available.
 
 ZTEST (pipe_api, test_pipe_avail_r_lt_w)
 Test available read / write space for r < w.
 
 ZTEST (pipe_api, test_pipe_avail_w_lt_r)
 Test available read / write space for w < r.
 
 ZTEST (pipe_api, test_pipe_avail_r_eq_w_empty)
 Test available read / write space for r == w and an empty buffer.
 
 ZTEST (pipe_api, test_pipe_avail_r_eq_w_full)
 Test available read / write space for r == w and a full buffer.