Lines Matching refs:test
79 struct test_filter *tmp, *test;
84 test = &set->tests[i];
86 if (strcmp(test_str, test->name) == 0) {
92 tmp = realloc(set->tests, sizeof(*test) * (set->cnt + 1));
97 test = &set->tests[set->cnt];
99 test->name = test_str;
100 test->subtests = NULL;
101 test->subtest_cnt = 0;
109 for (i = 0; i < test->subtest_cnt; i++) {
110 if (strcmp(subtest_str, test->subtests[i]) == 0) {
116 ctmp = realloc(test->subtests,
117 sizeof(*test->subtests) * (test->subtest_cnt + 1));
121 test->subtests = ctmp;
122 test->subtests[test->subtest_cnt] = subtest_str;
124 test->subtest_cnt++;
271 fd = bpf_prog_load(BPF_PROG_TYPE_SOCKET_FILTER, "flag-test", "GPL",