}
static int
-litest_run_suite(struct list *tests, int which, int max, int error_fd)
+litest_run_suite(struct list *suites, int which, int max, int error_fd)
{
int failed = 0;
SRunner *sr = NULL;
add it to the test runner. The only benefit suites give us in
check is that we can filter them, but our test runner has a
--filter-group anyway. */
- list_for_each(s, tests, node) {
+ list_for_each(s, suites, node) {
list_for_each(t, &s->tests, node) {
Suite *suite;
TCase *tc;
max_forks,
pipefd[1]);
- litest_free_test_list(&all_tests);
+ litest_free_test_list(&all_test_suites);
exit(failed);
/* child always exits here */
} else {
}
static inline int
-litest_run(struct list *tests)
+litest_run(struct list *suites)
{
int failed = 0;
int inhibit_lock_fd;
inhibit_lock_fd = inhibit();
if (jobs == 1)
- failed = litest_run_suite(tests, 1, 1, STDERR_FILENO);
+ failed = litest_run_suite(suites, 1, 1, STDERR_FILENO);
else
- failed = litest_fork_subtests(tests, jobs);
+ failed = litest_fork_subtests(suites, jobs);
close(inhibit_lock_fd);