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

Macros

#define STACK_SIZE   (512 + CONFIG_TEST_EXTRA_STACKSIZE)
 
#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_STACKSIZE))
 
static K_THREAD_STACK_DEFINE (test_stack,(512+CONFIG_TEST_EXTRA_STACKSIZE))
 
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)
 
static void test_thread_start (void)
 
static void test_float_disable (void)
 
static void test_timeout_remaining_ticks (void)
 
static void test_timeout_expires_ticks (void)
 
static void test_thread_create_uninit (void)
 
static void test_thread_create_stack_null (void)
 
static void test_thread_create_stack_overflow (void)
 
void test_main (void)
 

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_STACKSIZE)

◆ 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_STACKSIZE)   
)
static

◆ K_THREAD_STACK_DEFINE() [2/2]

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

◆ test_float_disable()

static void test_float_disable ( void  )
static

◆ test_main()

void test_main ( void  )

test case main entry

◆ test_thread()

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

◆ test_thread_create_stack_null()

static void test_thread_create_stack_null ( void  )
static

◆ test_thread_create_stack_overflow()

static void test_thread_create_stack_overflow ( void  )
static

◆ test_thread_create_uninit()

static void test_thread_create_uninit ( void  )
static

◆ test_thread_start()

static void test_thread_start ( void  )
static

◆ test_timeout_expires_ticks()

static void test_timeout_expires_ticks ( void  )
static

◆ test_timeout_remaining_ticks()

static void test_timeout_remaining_ticks ( void  )
static

◆ tThread_entry_negative()

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

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