Re: [PATCH bpf-next V2 2/2] selftests/bpf: test_progs avoid minus shell exit codes

2020-07-07 Thread Jesper Dangaard Brouer
On Mon, 6 Jul 2020 15:17:57 -0700 Andrii Nakryiko wrote: > On Mon, Jul 6, 2020 at 10:00 AM Jesper Dangaard Brouer > wrote: > > > > There are a number of places in test_progs that use minus-1 as the argument > > to exit(). This improper use as a process exit status is masked to be a > > number

Re: [PATCH bpf-next V2 2/2] selftests/bpf: test_progs avoid minus shell exit codes

2020-07-06 Thread Andrii Nakryiko
On Mon, Jul 6, 2020 at 10:00 AM Jesper Dangaard Brouer wrote: > > There are a number of places in test_progs that use minus-1 as the argument > to exit(). This improper use as a process exit status is masked to be a > number between 0 and 255 as defined in man exit(3). nit: I wouldn't call it

[PATCH bpf-next V2 2/2] selftests/bpf: test_progs avoid minus shell exit codes

2020-07-06 Thread Jesper Dangaard Brouer
There are a number of places in test_progs that use minus-1 as the argument to exit(). This improper use as a process exit status is masked to be a number between 0 and 255 as defined in man exit(3). This patch use two different positive exit codes instead, to allow a shell script to tell the two