Re: [PATCH bpf] selftests/bpf/test_progs: do not check errno == 0

From: Alexei Starovoitov
Date: Thu Sep 06 2018 - 14:00:26 EST


On Mon, Sep 03, 2018 at 07:01:59PM +0200, Mauricio Vasquez B wrote:
> The errno man page states: "The value in errno is significant only when
> the return value of the call indicated an error..." then it is not correct
> to check it, it could be different than zero even if the function
> succeeded.
>
> It causes some false positives if errno is set by a previous function.
>
> Signed-off-by: Mauricio Vasquez B <mauricio.vasquez@xxxxxxxxx>

Applied, Thanks