|
Zephyr Project API 3.5.0
A Scalable Open Source RTOS
|
Tests for spinlock. More...
Functions | |
| ZTEST (spinlock, test_spinlock_basic) | |
| Test basic spinlock. | |
| ZTEST (spinlock, test_spinlock_bounce) | |
| Test spinlock with bounce. | |
| ZTEST (spinlock, test_spinlock_mutual_exclusion) | |
| Test basic mutual exclusion using interrupt masking. | |
| ZTEST (spinlock, test_trylock) | |
| Test k_spin_trylock() | |
| ZTEST (spinlock, test_spinlock_no_recursive) | |
| Test spinlock cannot be recursive. | |
| ZTEST (spinlock, test_spinlock_unlock_error) | |
| Test unlocking incorrect spinlock. | |
| ZTEST (spinlock, test_spinlock_release_error) | |
| Test unlocking incorrect spinlock. | |
| ZTEST (spinlock, test_spinlock_lock_time_limit) | |
| Test unlocking spinlock held over the time limit. | |
Tests for spinlock.
| ZTEST | ( | spinlock | , |
| test_spinlock_basic | |||
| ) |
#include <tests/kernel/spinlock/src/main.c>
Test basic spinlock.
| ZTEST | ( | spinlock | , |
| test_spinlock_bounce | |||
| ) |
| ZTEST | ( | spinlock | , |
| test_spinlock_lock_time_limit | |||
| ) |
#include <tests/kernel/spinlock/src/spinlock_error_case.c>
Test unlocking spinlock held over the time limit.
Validate unlocking spinlock held past the time limit will trigger assertion.
| ZTEST | ( | spinlock | , |
| test_spinlock_mutual_exclusion | |||
| ) |
#include <tests/kernel/spinlock/src/main.c>
Test basic mutual exclusion using interrupt masking.
| ZTEST | ( | spinlock | , |
| test_spinlock_no_recursive | |||
| ) |
#include <tests/kernel/spinlock/src/spinlock_error_case.c>
Test spinlock cannot be recursive.
Validate using spinlock recursive will trigger assertion.
| ZTEST | ( | spinlock | , |
| test_spinlock_release_error | |||
| ) |
#include <tests/kernel/spinlock/src/spinlock_error_case.c>
Test unlocking incorrect spinlock.
Validate unlocking incorrect spinlock will trigger assertion.
| ZTEST | ( | spinlock | , |
| test_spinlock_unlock_error | |||
| ) |
#include <tests/kernel/spinlock/src/spinlock_error_case.c>
Test unlocking incorrect spinlock.
Validate unlocking incorrect spinlock will trigger assertion.
| ZTEST | ( | spinlock | , |
| test_trylock | |||
| ) |