Zephyr Project API 3.7.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
test_msgq_fail.c File Reference
#include "test_msgq.h"

Functions

static void put_fail (struct k_msgq *q)
 
static void get_fail (struct k_msgq *q)
 
 ZTEST (msgq_api_1cpu, test_msgq_put_fail)
 Test returned error code during writing in msgq.
 
 ZTEST_USER (msgq_api, test_msgq_user_put_fail)
 Test returned error code during writing in msgq.
 
 ZTEST (msgq_api_1cpu, test_msgq_get_fail)
 Test returned error code during reading from msgq.
 
 ZTEST_USER (msgq_api, test_msgq_user_get_fail)
 Test returned error code during reading from msgq.
 

Variables

static ZTEST_BMEM char tbuffer [4 *2]
 
static ZTEST_DMEM uint32_t data [2] = { 0xABCD , 0x1234 }
 
struct k_msgq msgq
 

Function Documentation

◆ get_fail()

static void get_fail ( struct k_msgq q)
static

TESTPOINT: msgq get returns -ENOMSG

TESTPOINT: msgq get returns -EAGAIN

◆ put_fail()

static void put_fail ( struct k_msgq q)
static

TESTPOINT: msgq put returns -ENOMSG

TESTPOINT: msgq put returns -EAGAIN

Variable Documentation

◆ data

ZTEST_DMEM uint32_t data[2] = { 0xABCD , 0x1234 }
static

◆ msgq

struct k_msgq msgq
extern

◆ tbuffer

ZTEST_BMEM char tbuffer[4 * 2]
static