Home
last modified time | relevance | path

Searched refs:test_state (Results 1 – 12 of 12) sorted by relevance

/Zephyr-latest/tests/subsys/modem/modem_pipe/src/
Dmain.c173 static atomic_t test_state; variable
188 atomic_set_bit(&test_state, TEST_MODEM_PIPE_EVENT_OPENED_BIT); in modem_pipe_fake_handler()
192 atomic_set_bit(&test_state, TEST_MODEM_PIPE_EVENT_RECEIVE_READY_BIT); in modem_pipe_fake_handler()
196 atomic_set_bit(&test_state, TEST_MODEM_PIPE_EVENT_TRANSMIT_IDLE_BIT); in modem_pipe_fake_handler()
200 atomic_set_bit(&test_state, TEST_MODEM_PIPE_EVENT_CLOSED_BIT); in modem_pipe_fake_handler()
208 atomic_set(&test_state, 0); in test_reset()
235 zassert_equal(atomic_get(&test_state), in test_pipe_open()
238 "Unexpected state %u", atomic_get(&test_state)); in test_pipe_open()
246 zassert_equal(atomic_get(&test_state), 0, in test_pipe_reopen()
247 "Unexpected state %u", atomic_get(&test_state)); in test_pipe_reopen()
[all …]
/Zephyr-latest/tests/subsys/fs/common/
Dtest_fs_open_flags.c27 struct test_state { struct
55 static void ZOPEN(struct test_state *ts, int flags, int expected, int line) in ZOPEN() argument
62 static void ZCLOSE(struct test_state *ts, int line) in ZCLOSE()
69 static void ZWRITE(struct test_state *ts, int expected, int line) in ZWRITE()
76 static void ZREAD(struct test_state *ts, int expected, int line) in ZREAD()
83 static void ZUNLINK(struct test_state *ts, int line) in ZUNLINK()
94 static void ZCHKPOS(struct test_state *ts, off_t expected, int line) in ZCHKPOS()
101 static void ZREWIND(struct test_state *ts, int line) in ZREWIND()
134 struct test_state ts = { in test_fs_open_flags()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/cb_notifications/src/
Dmain.c42 static struct state test_state = { variable
250 while (test_state.test_set < CB_NOTIFICATION_TEST_SET_COUNT) { in test_main()
251 ztest_run_all(&test_state, false, 1, 1); in test_main()
252 ++test_state.test_set; in test_main()
/Zephyr-latest/lib/smf/
Dsmf.c25 static bool share_paren(const struct smf_state *test_state, const struct smf_state *target_state) in share_paren() argument
27 for (const struct smf_state *state = test_state; state != NULL; state = state->parent) { in share_paren()
/Zephyr-latest/tests/lib/smf/src/
Dtest_lib_flat_smf.c60 enum test_state { enum
Dtest_lib_hierarchical_5_ancestor_smf.c98 enum test_state { enum
Dtest_lib_hierarchical_smf.c92 enum test_state { enum
Dtest_lib_self_transition_smf.c118 enum test_state { enum
/Zephyr-latest/tests/subsys/mgmt/mcumgr/os_mgmt_info/src/
Dmain.c66 static struct state test_state = { variable
1501 while (test_state.test_set < OS_MGMT_TEST_SET_COUNT) { in test_main()
1502 ztest_run_all(&test_state, false, 1, 1); in test_main()
1503 ++test_state.test_set; in test_main()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/os_mgmt_datetime/src/
Dmain.c45 static struct state test_state = { variable
1460 while (test_state.test_set < OS_MGMT_DATETIME_TEST_SET_COUNT) { in test_main()
1461 ztest_run_all(&test_state, false, 1, 1); in test_main()
1462 ++test_state.test_set; in test_main()
/Zephyr-latest/doc/develop/test/
Dztest.rst37 #include "test_state.h"
41 return ((const struct test_state*)global_state)->x == 5;
/Zephyr-latest/tests/net/tcp/src/
Dmain.c85 enum test_state { enum
119 static enum test_state t_state;