]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Mute expected invalid map creation error msg
authorMartynas Pumputis <m@lambda.lt>
Wed, 21 Jul 2021 14:09:41 +0000 (16:09 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 22 Jul 2021 23:44:10 +0000 (16:44 -0700)
commitd200a1568948d47a2953e6f1342b87c4a35f3e98
tree5f3ec6503f2214244fd7c6983909e0a3716d3a88
parent914c5998edfaa93f2d22b8a9a571dc1ca1a715c2
selftests/bpf: Mute expected invalid map creation error msg

Previously, the newly introduced test case in test_map_in_map(), which
checks whether the inner map is destroyed after unsuccessful creation of
the outer map, logged the following harmless and expected error:

    libbpf: map 'mim': failed to create: Invalid argument(-22) libbpf:
    failed to load object './test_map_in_map_invalid.o'

To avoid any possible confusion, mute the logging during loading of the
prog.

Fixes: 1ba0fc0e14b9 ("selftests/bpf: Check inner map deletion")
Reported-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Martynas Pumputis <m@lambda.lt>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210721140941.563175-1-m@lambda.lt
tools/testing/selftests/bpf/test_maps.c