mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-15 20:14:28 +00:00
tests: doc iterating in the runner
The iteration counter cannot be used to detect non-iterated tests defined with TEST and FAIL_TEST. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
parent
4f3cad7828
commit
19222b4c89
|
@ -88,6 +88,7 @@ list_tests(void)
|
||||||
fprintf(stderr, " %s\n", t->name);
|
fprintf(stderr, " %s\n", t->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* iteration is valid only if test_data is not NULL */
|
||||||
static int
|
static int
|
||||||
exec_and_report_test(const struct weston_test *t, void *test_data, int iteration)
|
exec_and_report_test(const struct weston_test *t, void *test_data, int iteration)
|
||||||
{
|
{
|
||||||
|
@ -143,7 +144,10 @@ exec_and_report_test(const struct weston_test *t, void *test_data, int iteration
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Returns number of tests and number of pass / fail in param args */
|
/* Returns number of tests and number of pass / fail in param args.
|
||||||
|
* Even non-iterated tests go through here, they simply have n_elements = 1 and
|
||||||
|
* table_data = NULL.
|
||||||
|
*/
|
||||||
static int
|
static int
|
||||||
iterate_test(const struct weston_test *t, int *passed, int *skipped)
|
iterate_test(const struct weston_test *t, int *passed, int *skipped)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue