Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
test_pipe_fail.c File Reference

Macros

#define TIMEOUT   K_MSEC(100)
 
#define PIPE_LEN   8
 

Functions

static void put_fail (struct k_pipe *p)
 
 ZTEST (pipe_api_1cpu, test_pipe_put_fail)
 Test pipe put failure scenario.
 
 ZTEST_USER (pipe_api_1cpu, test_pipe_user_put_fail)
 Test pipe put by a user thread.
 
static void get_fail (struct k_pipe *p)
 
 ZTEST (pipe_api, test_pipe_get_fail)
 Test pipe get failure scenario.
 
 ZTEST_USER (pipe_api, test_pipe_user_get_fail)
 Test pipe get by a user thread.
 
 ZTEST_USER (pipe_api, test_pipe_alloc_not_init)
 Test k_pipe_alloc_init() failure scenario.
 
 ZTEST_USER (pipe_api, test_pipe_get_null)
 Test k_pipe_get() failure scenario.
 
 ZTEST_USER (pipe_api, test_pipe_get_unreach_data)
 Test k_pipe_get() failure scenario.
 
 ZTEST_USER (pipe_api, test_pipe_get_unreach_size)
 Test k_pipe_get() failure scenario.
 
 ZTEST_USER (pipe_api, test_pipe_put_null)
 Test k_pipe_put() failure scenario.
 
 ZTEST_USER (pipe_api, test_pipe_put_unreach_data)
 Test k_pipe_put() failure scenario.
 
 ZTEST_USER (pipe_api, test_pipe_put_unreach_size)
 Test k_pipe_put() failure scenario.
 
 ZTEST_USER (pipe_api, test_pipe_read_avail_null)
 Test k_pipe_read_avail() failure scenario.
 
 ZTEST_USER (pipe_api, test_pipe_write_avail_null)
 Test k_pipe_write_avail() failure scenario.
 

Variables

static ZTEST_DMEM unsigned char data [] = "abcd1234"
 
struct k_pipe put_get_pipe
 
static unsigned char user_unreach [8]
 
static size_t unreach_byte
 

Macro Definition Documentation

◆ PIPE_LEN

#define PIPE_LEN   8

◆ TIMEOUT

#define TIMEOUT   K_MSEC(100)

Function Documentation

◆ get_fail()

static void get_fail ( struct k_pipe p)
static

TESTPOINT: pipe put returns -EIO

TESTPOINT: pipe put returns -EAGAIN

◆ put_fail()

static void put_fail ( struct k_pipe p)
static

TESTPOINT: pipe put returns -EIO

TESTPOINT: pipe put returns -EAGAIN

Variable Documentation

◆ data

ZTEST_DMEM unsigned char data[] = "abcd1234"
static

◆ put_get_pipe

struct k_pipe put_get_pipe

◆ unreach_byte

size_t unreach_byte
static

◆ user_unreach

unsigned char user_unreach[8]
static