On Mon, 2024-07-08 at 10:29 +0800, Geliang Tang wrote:

[...]

> diff --git a/tools/testing/selftests/bpf/network_helpers.h 
> b/tools/testing/selftests/bpf/network_helpers.h
> index fcda6b2333ad..14d161d35248 100644
> --- a/tools/testing/selftests/bpf/network_helpers.h
> +++ b/tools/testing/selftests/bpf/network_helpers.h
> @@ -24,6 +24,7 @@ typedef __u16 __sum16;
>  struct network_helper_opts {
>       int timeout_ms;
>       bool must_fail;
> +     int expect_errno;

I think this option obfuscates actual test cases.
Each helper that accepts network_helper_opts as a parameter, does
multiple system calls. It is not obvious which of these calls is
expected to fail.

>       int proto;
>       /* The backlog argument for listen(), defines the maximum length to 
> which
>        * the queue of pending connections for sockfd may grow.

[...]

Reply via email to