Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
test_poll_fail.c File Reference
#include <ztest.h>
#include <kernel.h>
#include <ztest_error_hook.h>

Macros

#define STACK_SIZE   (1024 + CONFIG_TEST_EXTRA_STACKSIZE)
 

Functions

 K_THREAD_STACK_DEFINE (test_stack1,(1024+CONFIG_TEST_EXTRA_STACKSIZE))
 
 K_THREAD_STACK_DEFINE (test_stack2,(1024+CONFIG_TEST_EXTRA_STACKSIZE))
 
void test_condition_met_type_err (void)
 Test API k_poll with error events type in kernel mode. More...
 
static K_SEM_DEFINE (multi_sem, 0, 1)
 
static K_SEM_DEFINE (multi_ready_sem, 1, 1)
 
static K_SEM_DEFINE (multi_reply, 0, 1)
 
static void thread_entry (void *p1, void *p2, void *p3)
 
void test_poll_lower_prio (void)
 Test polling of multiple events by lower priority thread. More...
 
void test_k_poll_user_num_err (void)
 Test API k_poll with error number events in user mode. More...
 
void test_k_poll_user_mem_err (void)
 Test API k_poll with error member of events in user mode. More...
 
void test_k_poll_user_type_sem_err (void)
 Test API k_poll with NULL sem event in user mode. More...
 
void test_k_poll_user_type_signal_err (void)
 Test API k_poll with NULL signal event in user mode. More...
 
void test_k_poll_user_type_fifo_err (void)
 Test API k_poll with NULL fifo event in user mode. More...
 
void test_k_poll_user_type_msgq_err (void)
 Test API k_poll with NULL message queue event in user mode. More...
 
void test_poll_signal_init_null (void)
 Test API k_poll_signal_init with NULL in user mode. More...
 
void test_poll_signal_check_obj (void)
 Test API k_poll_signal_check with NULL object in user mode. More...
 
void test_poll_signal_check_signal (void)
 Test API k_poll_signal_check with unread address in user mode. More...
 
void test_poll_signal_check_result (void)
 Test API k_poll_signal_check with unread address in user mode. More...
 
void test_poll_signal_raise_null (void)
 Test API k_poll_signal_raise with unread address in user mode. More...
 
void test_poll_signal_reset_null (void)
 Test API k_poll_signal_reset with unread address in user mode. More...
 
void test_poll_fail_grant_access (void)
 

Variables

static struct k_poll_signal signal_err
 
static struct k_thread test_thread1
 
static struct k_thread test_thread2
 

Macro Definition Documentation

◆ STACK_SIZE

#define STACK_SIZE   (1024 + CONFIG_TEST_EXTRA_STACKSIZE)

Function Documentation

◆ K_SEM_DEFINE() [1/3]

static K_SEM_DEFINE ( multi_ready_sem  ,
,
 
)
static

◆ K_SEM_DEFINE() [2/3]

static K_SEM_DEFINE ( multi_reply  ,
,
 
)
static

◆ K_SEM_DEFINE() [3/3]

static K_SEM_DEFINE ( multi_sem  ,
,
 
)
static

◆ K_THREAD_STACK_DEFINE() [1/2]

K_THREAD_STACK_DEFINE ( test_stack1  ,
(1024+CONFIG_TEST_EXTRA_STACKSIZE)   
)

◆ K_THREAD_STACK_DEFINE() [2/2]

K_THREAD_STACK_DEFINE ( test_stack2  ,
(1024+CONFIG_TEST_EXTRA_STACKSIZE)   
)

◆ test_poll_fail_grant_access()

void test_poll_fail_grant_access ( void  )

◆ thread_entry()

static void thread_entry ( void p1,
void p2,
void p3 
)
static

Variable Documentation

◆ signal_err

struct k_poll_signal signal_err
static

◆ test_thread1

struct k_thread test_thread1
static

◆ test_thread2

struct k_thread test_thread2
static