Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
Tests for Kernel stack objects. More...
Functions | |
static void | test_single_stack_play (void) |
Verify data passing between threads using single stack. More... | |
static void | test_dual_stack_play (void) |
Verify data passing between threads using dual stack. More... | |
static void | test_isr_stack_play (void) |
Verify data passing between thread and ISR. More... | |
void | thread_entry_wait (void *p1, void *p2, void *p3) |
void | test_stack_pop_can_wait (void) |
Test that the stack pop can be waited if no item availablle. More... | |
void | test_stack_thread2thread (void) |
Test to verify data passing between threads via stack. More... | |
void | test_stack_user_thread2thread (void) |
Verifies data passing between user threads via stack. More... | |
void | test_stack_thread2isr (void) |
Verifies data passing between thread and ISR via stack. More... | |
void | test_stack_alloc_thread2thread (void) |
static void | low_prio_wait_for_stack (void *p1, void *p2, void *p3) |
static void | high_prio_t1_wait_for_stack (void *p1, void *p2, void *p3) |
static void | high_prio_t2_wait_for_stack (void *p1, void *p2, void *p3) |
void | test_stack_multithread_competition (void) |
Test multi-threads to get data from stack. More... | |
void | tStack_pop_entry (void *p1, void *p2, void *p3) |
void | test_stack_pop_fail (void) |
Verifies stack pop functionality. More... | |
void | test_stack_cleanup_error (void) |
Verifies cleanup a stack that still be needed by another thread. More... | |
void | test_stack_push_full (void) |
Verifies push a data in the full stack. More... | |
void | test_stack_user_pop_fail (void) |
Verifies stack pop from a user thread. More... | |
void | test_stack_user_init_null (void) |
Verifies stack alloc and initialize a null pointer. More... | |
void | test_stack_user_init_invalid_value (void) |
Verify that alloc and initialize a stack with 0 memory. More... | |
void | test_stack_user_push_null (void) |
Verify that push some data into a NULL pointer. More... | |
void | test_stack_user_pop_null (void) |
Verifies pop data from a NULL pointer. More... | |
void | test_stack_user_pop_permission (void) |
Verifies cleanup a stack that its data still be waited by another thread. More... | |
Tests for Kernel stack objects.
#include <tests/kernel/stack/stack/src/main.c>
Verify data passing between threads using dual stack.
#include <tests/kernel/stack/stack/src/main.c>
Verify data passing between thread and ISR.
#include <tests/kernel/stack/stack/src/main.c>
Verify data passing between threads using single stack.
#include <tests/kernel/stack/stack/src/test_stack_contexts.c>
TESTPOINT: thread-thread data passing via stack
Requested buffer allocation from the test pool.
#include <tests/kernel/stack/stack/src/test_stack_fail.c>
Verifies cleanup a stack that still be needed by another thread.
#include <tests/kernel/stack/stack/src/test_stack_contexts.c>
Test multi-threads to get data from stack.
Define three threads, and set a higher priority for two of them, and set a lower priority for the last one. Then Add a delay between creating the two high priority threads. Test point:
#include <tests/kernel/stack/stack/src/main.c>
Test that the stack pop can be waited if no item availablle.
Create and initialize a new stack Set two timeout parameters to indicate the maximum amount of time the thread will wait.
#include <tests/kernel/stack/stack/src/test_stack_fail.c>
Verifies stack pop functionality.
#include <tests/kernel/stack/stack/src/test_stack_fail.c>
Verifies push a data in the full stack.
#include <tests/kernel/stack/stack/src/test_stack_contexts.c>
Verifies data passing between thread and ISR via stack.
TESTPOINT: test k_stack_init stack
TESTPOINT: test K_STACK_DEFINE stack
#include <tests/kernel/stack/stack/src/test_stack_contexts.c>
Test to verify data passing between threads via stack.
Static define and Dynamic define stacks, Then initialize them. Current thread push or pop data item into the stack. Create a new thread pop or push data item into the stack. Controlled by semaphore. Verify data passing between threads via stack And verify stack can be define at compile time.
TESTPOINT: test k_stack_init stack
TESTPOINT: test K_STACK_DEFINE stack
#include <tests/kernel/stack/stack/src/test_stack_fail.c>
Verify that alloc and initialize a stack with 0 memory.
#include <tests/kernel/stack/stack/src/test_stack_fail.c>
Verifies stack alloc and initialize a null pointer.
#include <tests/kernel/stack/stack/src/test_stack_fail.c>
Verifies stack pop from a user thread.
#include <tests/kernel/stack/stack/src/test_stack_fail.c>
Verifies pop data from a NULL pointer.
#include <tests/kernel/stack/stack/src/test_stack_fail.c>
Verifies cleanup a stack that its data still be waited by another thread.
#include <tests/kernel/stack/stack/src/test_stack_fail.c>
Verify that push some data into a NULL pointer.
#include <tests/kernel/stack/stack/src/test_stack_contexts.c>
Verifies data passing between user threads via stack.
#include <tests/kernel/stack/stack/src/main.c>