Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
Tests for spinlock. More...
Functions | |
void | test_spinlock_basic (void) |
Test basic spinlock. More... | |
void | test_spinlock_bounce (void) |
Test spinlock with bounce. More... | |
void | test_spinlock_mutual_exclusion (void) |
Test basic mutual exclusion using interrupt masking. More... | |
void | test_spinlock_no_recursive (void) |
Test spinlock cannot be recursive. More... | |
void | test_spinlock_unlock_error (void) |
Test unlocking incorrect spinlock. More... | |
void | test_spinlock_release_error (void) |
Test unlocking incorrect spinlock. More... | |
Tests for spinlock.
#include <tests/kernel/spinlock/src/main.c>
Test basic spinlock.
#include <tests/kernel/spinlock/src/main.c>
Test basic mutual exclusion using interrupt masking.
#include <tests/kernel/spinlock/src/spinlock_error_case.c>
Test spinlock cannot be recursive.
Validate using spinlock recursive will trigger assertion.
#include <tests/kernel/spinlock/src/spinlock_error_case.c>
Test unlocking incorrect spinlock.
Validate unlocking incorrect spinlock will trigger assertion.
#include <tests/kernel/spinlock/src/spinlock_error_case.c>
Test unlocking incorrect spinlock.
Validate unlocking incorrect spinlock will trigger assertion.