Thread (2 messages) flat view 2 messages, 2 authors, 2018-02-22

Re: [PATCH v2] selftests/bpf/test_maps: exit child process without error in ENOMEM case

From: Daniel Borkmann <daniel@iogearbox.net>
Date: 2018-02-22 14:25:14
Also in: linux-kselftest, lkml

On 02/22/2018 03:34 AM, Li Zhijian wrote:
From: Li Zhijian <redacted>

test_maps contains a series of stress tests, and previously it will break the
rest tests when it failed to alloc memory.
-----------------------
Failed to create hashmap key=8 value=262144 'Cannot allocate memory'
Failed to create hashmap key=16 value=262144 'Cannot allocate memory'
Failed to create hashmap key=8 value=262144 'Cannot allocate memory'
Failed to create hashmap key=8 value=262144 'Cannot allocate memory'
test_maps: test_maps.c:955: run_parallel: Assertion `status == 0' failed.
Aborted
not ok 1..3 selftests:  test_maps [FAIL]
-----------------------
after this patch, the rest tests will be continue when it occurs an ENOMEM failure

CC: Alexei Starovoitov <redacted>
CC: Philip Li <redacted>
Suggested-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Li Zhijian <redacted>
Applied to bpf tree, thanks Li!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help