Re: [PATCH net-next] selftests/bpf: make correct use of exit codes in bpf selftests

2017-06-13 Thread David Miller
From: Jesper Dangaard Brouer Date: Tue, 13 Jun 2017 15:17:19 +0200 > The selftests depend on using the shell exit code as a mean of > detecting the success or failure of test-binary executed. The > appropiate output "[PASS]" or "[FAIL]" in generated by >

Re: [PATCH net-next] selftests/bpf: make correct use of exit codes in bpf selftests

2017-06-13 Thread Fengguang Wu
On Tue, Jun 13, 2017 at 03:17:19PM +0200, Jesper Dangaard Brouer wrote: The selftests depend on using the shell exit code as a mean of detecting the success or failure of test-binary executed. The appropiate output "[PASS]" or "[FAIL]" in generated by tools/testing/selftests/lib.mk. Notice

Re: [PATCH net-next] selftests/bpf: make correct use of exit codes in bpf selftests

2017-06-13 Thread Daniel Borkmann
On 06/13/2017 03:17 PM, Jesper Dangaard Brouer wrote: The selftests depend on using the shell exit code as a mean of detecting the success or failure of test-binary executed. The appropiate output "[PASS]" or "[FAIL]" in generated by tools/testing/selftests/lib.mk. Notice that the exit code is

[PATCH net-next] selftests/bpf: make correct use of exit codes in bpf selftests

2017-06-13 Thread Jesper Dangaard Brouer
The selftests depend on using the shell exit code as a mean of detecting the success or failure of test-binary executed. The appropiate output "[PASS]" or "[FAIL]" in generated by tools/testing/selftests/lib.mk. Notice that the exit code is masked with 255. Thus, be careful if using the number