Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
Test cases to verify poll. More...
Functions | |
ZTEST_USER (poll_api_1cpu, test_poll_no_wait) | |
Test poll events with no wait. | |
ZTEST (poll_api_1cpu, test_poll_wait) | |
Test polling with wait. | |
void | test_poll_cancel (bool is_main_low_prio) |
Test polling of cancelled fifo. | |
ZTEST (poll_api, test_poll_multi) | |
Test polling of multiple events. | |
ZTEST (poll_api_1cpu, test_poll_threadstate) | |
Test polling of events by manipulating polling thread state. | |
ZTEST_USER (poll_api, test_k_poll_user_num_err) | |
Test API k_poll with error number events in user mode. | |
ZTEST_USER (poll_api, test_k_poll_user_mem_err) | |
Test API k_poll with error member of events in user mode. | |
ZTEST_USER (poll_api, test_k_poll_user_type_sem_err) | |
Test API k_poll with NULL sem event in user mode. | |
ZTEST_USER (poll_api, test_k_poll_user_type_signal_err) | |
Test API k_poll with NULL signal event in user mode. | |
ZTEST_USER (poll_api, test_k_poll_user_type_fifo_err) | |
Test API k_poll with NULL fifo event in user mode. | |
ZTEST_USER (poll_api, test_k_poll_user_type_msgq_err) | |
Test API k_poll with NULL message queue event in user mode. | |
ZTEST_USER (poll_api, test_poll_signal_init_null) | |
Test API k_poll_signal_init with NULL in user mode. | |
ZTEST_USER (poll_api, test_poll_signal_check_obj) | |
Test API k_poll_signal_check with NULL object in user mode. | |
ZTEST_USER (poll_api, test_poll_signal_check_signal) | |
Test API k_poll_signal_check with unread address in user mode. | |
ZTEST_USER (poll_api, test_poll_signal_check_result) | |
Test API k_poll_signal_check with unread address in user mode. | |
ZTEST_USER (poll_api, test_poll_signal_raise_null) | |
Test API k_poll_signal_raise with unread address in user mode. | |
ZTEST_USER (poll_api, test_poll_signal_reset_null) | |
Test API k_poll_signal_reset with unread address in user mode. | |
Test cases to verify poll.
void test_poll_cancel | ( | bool | is_main_low_prio | ) |
#include <tests/kernel/poll/src/test_poll.c>
Test polling of cancelled fifo.
Test the FIFO(queue) data available/cancelable events as events in poll.
ZTEST | ( | poll_api | , |
test_poll_multi | |||
) |
#include <tests/kernel/poll/src/test_poll.c>
Test polling of multiple events.
ZTEST | ( | poll_api_1cpu | , |
test_poll_threadstate | |||
) |
#include <tests/kernel/poll/src/test_poll.c>
Test polling of events by manipulating polling thread state.
ZTEST | ( | poll_api_1cpu | , |
test_poll_wait | |||
) |
#include <tests/kernel/poll/src/test_poll.c>
Test polling with wait.
Test Objective:
Testing techniques:
Prerequisite Conditions:
Input Specifications:
Test Procedure:
Expected Test Result:
Pass/Fail Criteria:
Assumptions and Constraints:
ZTEST_USER | ( | poll_api | , |
test_k_poll_user_mem_err | |||
) |
#include <tests/kernel/poll/src/test_poll_fail.c>
Test API k_poll with error member of events in user mode.
Using API k_poll with error member as parameter to check if a error will be met.
ZTEST_USER | ( | poll_api | , |
test_k_poll_user_num_err | |||
) |
#include <tests/kernel/poll/src/test_poll_fail.c>
Test API k_poll with error number events in user mode.
Using API k_poll with error number as parameter to check if a error will be met.
ZTEST_USER | ( | poll_api | , |
test_k_poll_user_type_fifo_err | |||
) |
#include <tests/kernel/poll/src/test_poll_fail.c>
Test API k_poll with NULL fifo event in user mode.
Define a poll, and using API k_poll with NULL fifo as parameter to check if a error will be met.
ZTEST_USER | ( | poll_api | , |
test_k_poll_user_type_msgq_err | |||
) |
#include <tests/kernel/poll/src/test_poll_fail.c>
Test API k_poll with NULL message queue event in user mode.
Define a poll, and using API k_poll with NULL message queue as parameter to check if a error will be met.
ZTEST_USER | ( | poll_api | , |
test_k_poll_user_type_sem_err | |||
) |
#include <tests/kernel/poll/src/test_poll_fail.c>
Test API k_poll with NULL sem event in user mode.
Define a poll event, and using API k_poll with NULL sem as parameter to check if a error will be met.
ZTEST_USER | ( | poll_api | , |
test_k_poll_user_type_signal_err | |||
) |
#include <tests/kernel/poll/src/test_poll_fail.c>
Test API k_poll with NULL signal event in user mode.
Define a poll, and using API k_poll with NULL signal as parameter to check if a error will be met.
ZTEST_USER | ( | poll_api | , |
test_poll_signal_check_obj | |||
) |
#include <tests/kernel/poll/src/test_poll_fail.c>
Test API k_poll_signal_check with NULL object in user mode.
Using API k_poll with NULL object as parameter to check if a error will be met.
ZTEST_USER | ( | poll_api | , |
test_poll_signal_check_result | |||
) |
#include <tests/kernel/poll/src/test_poll_fail.c>
Test API k_poll_signal_check with unread address in user mode.
Using k_poll_signal_check with unread signaled as parameter to check if a error will be met.
ZTEST_USER | ( | poll_api | , |
test_poll_signal_check_signal | |||
) |
#include <tests/kernel/poll/src/test_poll_fail.c>
Test API k_poll_signal_check with unread address in user mode.
Using k_poll_signal_check with unread results as parameter to check if a error will be met.
ZTEST_USER | ( | poll_api | , |
test_poll_signal_init_null | |||
) |
#include <tests/kernel/poll/src/test_poll_fail.c>
Test API k_poll_signal_init with NULL in user mode.
Using API k_poll_signal_init with NULL as parameter to check if a error will be met.
ZTEST_USER | ( | poll_api | , |
test_poll_signal_raise_null | |||
) |
#include <tests/kernel/poll/src/test_poll_fail.c>
Test API k_poll_signal_raise with unread address in user mode.
Using k_poll_signal_raise with NULL as parameter to check if a error will be met.
ZTEST_USER | ( | poll_api | , |
test_poll_signal_reset_null | |||
) |
#include <tests/kernel/poll/src/test_poll_fail.c>
Test API k_poll_signal_reset with unread address in user mode.
Using k_poll_signal_reset with NULL as parameter to check if a error will be met.
ZTEST_USER | ( | poll_api_1cpu | , |
test_poll_no_wait | |||
) |
#include <tests/kernel/poll/src/test_poll.c>
Test poll events with no wait.