Home
last modified time | relevance | path

Searched refs:parsed_filters (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/lib/kunit/
Dexecutor.c159 struct kunit_attr_filter *parsed_filters = NULL; in kunit_filter_suites() local
179 parsed_filters = kcalloc(filter_count, sizeof(*parsed_filters), GFP_KERNEL); in kunit_filter_suites()
180 if (!parsed_filters) { in kunit_filter_suites()
185 parsed_filters[j] = kunit_next_attr_filter(&filters, err); in kunit_filter_suites()
202 if (filter_count > 0 && parsed_filters != NULL) { in kunit_filter_suites()
205 parsed_filters[k], filter_action, err); in kunit_filter_suites()
245 kfree(parsed_filters); in kunit_filter_suites()
Dexecutor_test.c121 struct kunit_attr_filter *parsed_filters; in parse_filter_attr_test() local
128 parsed_filters = kunit_kcalloc(test, filter_count, sizeof(*parsed_filters), in parse_filter_attr_test()
131 parsed_filters[j] = kunit_next_attr_filter(&filter, &err); in parse_filter_attr_test()
135 KUNIT_EXPECT_STREQ(test, kunit_attr_filter_name(parsed_filters[0]), "speed"); in parse_filter_attr_test()
136 KUNIT_EXPECT_STREQ(test, parsed_filters[0].input, ">slow"); in parse_filter_attr_test()
138 KUNIT_EXPECT_STREQ(test, kunit_attr_filter_name(parsed_filters[1]), "module"); in parse_filter_attr_test()
139 KUNIT_EXPECT_STREQ(test, parsed_filters[1].input, "!=example"); in parse_filter_attr_test()