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

Macros

#define TIMEOUT   K_MSEC(100)
 
#define STACK_SIZE   (512 + CONFIG_TEST_EXTRA_STACK_SIZE)
 
#define LIST_LEN   2
 

Functions

static K_THREAD_STACK_DEFINE (tstack,(512+CONFIG_TEST_EXTRA_STACK_SIZE))
 
 K_SEM_DEFINE (sem, 0, 1)
 
 ZTEST (queue_api_1cpu, test_queue_get_fail)
 Test k_queue_get() failure scenario.
 
static void tThread_entry (void *p1, void *p2, void *p3)
 
 ZTEST (queue_api, test_queue_append_list_error)
 Test k_queue_append_list() failure scenario.
 
 ZTEST (queue_api, test_queue_merge_list_error)
 Test k_queue_merge_slist() failure scenario.
 
 ZTEST_USER (queue_api, test_queue_init_null)
 Test k_queue_init() failure scenario.
 
 ZTEST_USER (queue_api, test_queue_alloc_append_null)
 Test k_queue_alloc_append() failure scenario.
 
 ZTEST_USER (queue_api, test_queue_alloc_prepend_null)
 Test k_queue_alloc_prepend() failure scenario.
 
 ZTEST_USER (queue_api, test_queue_get_null)
 Test k_queue_get() failure scenario.
 
 ZTEST_USER (queue_api, test_queue_is_empty_null)
 Test k_queue_is_empty() failure scenario.
 
 ZTEST_USER (queue_api, test_queue_peek_head_null)
 Test k_queue_peek_head() failure scenario.
 
 ZTEST_USER (queue_api, test_queue_peek_tail_null)
 Test k_queue_peek_tail() failure scenario.
 
 ZTEST_USER (queue_api, test_queue_cancel_wait_error)
 Test k_queue_merge_slist() failure scenario.
 

Variables

static struct k_thread tdata
 

Macro Definition Documentation

◆ LIST_LEN

#define LIST_LEN   2

◆ STACK_SIZE

#define STACK_SIZE   (512 + CONFIG_TEST_EXTRA_STACK_SIZE)

◆ TIMEOUT

#define TIMEOUT   K_MSEC(100)

Function Documentation

◆ K_SEM_DEFINE()

K_SEM_DEFINE ( sem  ,
,
 
)

◆ K_THREAD_STACK_DEFINE()

static K_THREAD_STACK_DEFINE ( tstack  ,
(512+CONFIG_TEST_EXTRA_STACK_SIZE)   
)
static

◆ tThread_entry()

static void tThread_entry ( void *  p1,
void *  p2,
void *  p3 
)
static

Variable Documentation

◆ tdata

struct k_thread tdata
static