Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
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)
 
void test_msgq_put_fail (void)
 Test returned error code during writing in msgq. More...
 
void test_msgq_user_put_fail (void)
 Test returned error code during writing in msgq. More...
 
void test_msgq_get_fail (void)
 Test returned error code during reading from msgq. More...
 
void test_msgq_user_get_fail (void)
 Test returned error code during reading from msgq. More...
 

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