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

Macros

#define STACK_SIZE   (512 + CONFIG_TEST_EXTRA_STACK_SIZE)
 
#define THREAD_TEST_PRIORITY   5
 

Enumerations

enum  {
  THREAD_START , FLOAT_DISABLE , TIMEOUT_REMAINING_TICKS , TIMEOUT_EXPIRES_TICKS ,
  THREAD_CREATE_NEWTHREAD_NULL , THREAD_CREATE_STACK_NULL , THREAD_CTEATE_STACK_SIZE_OVERFLOW
}
 

Functions

static K_THREAD_STACK_DEFINE (tstack,(512+CONFIG_TEST_EXTRA_STACK_SIZE))
 
static K_THREAD_STACK_DEFINE (test_stack,(512+CONFIG_TEST_EXTRA_STACK_SIZE))
 
static void test_thread (void *p1, void *p2, void *p3)
 
static void tThread_entry_negative (void *p1, void *p2, void *p3)
 
static void create_negative_test_thread (int choice)
 
 ZTEST_USER (thread_error_case, test_thread_start)
 
 ZTEST_USER (thread_error_case, test_float_disable)
 
 ZTEST_USER (thread_error_case, test_timeout_remaining_ticks)
 
 ZTEST_USER (thread_error_case, test_timeout_expires_ticks)
 
 ZTEST_USER (thread_error_case, test_thread_create_uninit)
 
 ZTEST_USER (thread_error_case, test_thread_create_stack_null)
 
 ZTEST_USER (thread_error_case, test_thread_create_stack_overflow)
 
void * thread_grant_setup (void)
 
 ZTEST_SUITE (thread_error_case, NULL, thread_grant_setup, NULL, NULL, NULL)
 

Variables

static ZTEST_DMEM int case_type
 
static struct k_thread tdata
 
static struct k_thread test_tdata
 
enum { ... }  neg_case
 

Macro Definition Documentation

◆ STACK_SIZE

#define STACK_SIZE   (512 + CONFIG_TEST_EXTRA_STACK_SIZE)

◆ THREAD_TEST_PRIORITY

#define THREAD_TEST_PRIORITY   5

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
THREAD_START 
FLOAT_DISABLE 
TIMEOUT_REMAINING_TICKS 
TIMEOUT_EXPIRES_TICKS 
THREAD_CREATE_NEWTHREAD_NULL 
THREAD_CREATE_STACK_NULL 
THREAD_CTEATE_STACK_SIZE_OVERFLOW 

Function Documentation

◆ create_negative_test_thread()

static void create_negative_test_thread ( int  choice)
static

◆ K_THREAD_STACK_DEFINE() [1/2]

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

◆ K_THREAD_STACK_DEFINE() [2/2]

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

◆ test_thread()

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

◆ thread_grant_setup()

void * thread_grant_setup ( void  )

◆ tThread_entry_negative()

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

◆ ZTEST_SUITE()

ZTEST_SUITE ( thread_error_case  ,
NULL  ,
thread_grant_setup  ,
NULL  ,
NULL  ,
NULL   
)

◆ ZTEST_USER() [1/7]

ZTEST_USER ( thread_error_case  ,
test_float_disable   
)

◆ ZTEST_USER() [2/7]

ZTEST_USER ( thread_error_case  ,
test_thread_create_stack_null   
)

◆ ZTEST_USER() [3/7]

ZTEST_USER ( thread_error_case  ,
test_thread_create_stack_overflow   
)

◆ ZTEST_USER() [4/7]

ZTEST_USER ( thread_error_case  ,
test_thread_create_uninit   
)

◆ ZTEST_USER() [5/7]

ZTEST_USER ( thread_error_case  ,
test_thread_start   
)

◆ ZTEST_USER() [6/7]

ZTEST_USER ( thread_error_case  ,
test_timeout_expires_ticks   
)

◆ ZTEST_USER() [7/7]

ZTEST_USER ( thread_error_case  ,
test_timeout_remaining_ticks   
)

Variable Documentation

◆ case_type

ZTEST_DMEM int case_type
static

◆ []

enum { ... } neg_case

◆ tdata

struct k_thread tdata
static

◆ test_tdata

struct k_thread test_tdata
static