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