Home
last modified time | relevance | path

Searched refs:predicate (Results 1 – 8 of 8) sorted by relevance

/Zephyr-latest/subsys/testsuite/ztest/src/
Dztest_defaults.c51 if (suite->predicate != NULL) { in z_ztest_should_suite_run()
52 run_suite = suite->predicate(state); in z_ztest_should_suite_run()
Dztest_shell.c127 } else if (suite->predicate != NULL) { in z_ztest_should_suite_run()
128 run_suite = suite->predicate(state); in z_ztest_should_suite_run()
Dztest_posix.c217 } else if (suite->predicate != NULL) { in z_ztest_should_suite_run()
218 run_suite = suite->predicate(state); in z_ztest_should_suite_run()
/Zephyr-latest/subsys/testsuite/ztest/include/zephyr/
Dztest_test.h207 const ztest_suite_predicate_t predicate; member
242 .predicate = PREDICATE, \
/Zephyr-latest/doc/develop/test/
Dztest.rst20 * :c:type:`ztest_suite_predicate_t` - An optional predicate function to allow choosing when the
21 test will run. The predicate will get a pointer to the global state passed in through
32 Below is an example of a test suite using a predicate:
39 static bool predicate(const void *global_state)
44 ZTEST_SUITE(alternating_suite, predicate, NULL, NULL, NULL, NULL);
188 using the ``predicate`` to control when it would run. In that case, the :c:func:`test_main`
201 /* Only suites that use a predicate checking for phase == PWR_PHASE_0 will run. */
205 /* Only suites that use a predicate checking for phase == PWR_PHASE_1 will run. */
209 /* Only suites that use a predicate checking for phase == PWR_PHASE_2 will run. */
/Zephyr-latest/doc/kernel/data_structures/
Drbtree.rst19 within an rbtree must be provided as a predicate function by the user.
40 predicate, :c:func:`rb_contains`, which returns a boolean True if the
Dring_buffers.rst106 or by testing the :c:func:`ring_buf_is_empty` predicate.
/Zephyr-latest/doc/kernel/services/smp/
Dsmp.rst300 for each CPU. This makes the internal predicate test for "_is_idle()"