Lines Matching refs:tests
29 } tests[] = { in test_empty_skb() local
115 for (i = 0; i < ARRAY_SIZE(tests); i++) { in test_empty_skb()
122 expected_ret = at_egress && !at_tc ? tests[i].lwt_egress_ret : tests[i].ret; in test_empty_skb()
124 tattr.data_in = tests[i].data_in; in test_empty_skb()
125 tattr.data_size_in = tests[i].data_size_in; in test_empty_skb()
128 bpf_obj->bss->ifindex = *tests[i].ifindex; in test_empty_skb()
131 sprintf(buf, "err: %s [%s]", tests[i].msg, bpf_program__name(prog)); in test_empty_skb()
133 if (at_tc && tests[i].success_on_tc) in test_empty_skb()
136 ASSERT_EQ(err, tests[i].err, buf); in test_empty_skb()
137 sprintf(buf, "ret: %s [%s]", tests[i].msg, bpf_program__name(prog)); in test_empty_skb()
138 if (at_tc && tests[i].success_on_tc) in test_empty_skb()