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)
commit9907442fcddbdacf55fa22e31f2306ae0d6172d6
tree5f3ec6503f2214244fd7c6983909e0a3716d3a88
parent724f17b7d45d62c71e92471666647a823cb9baa9
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: 08f71a1e39a1 ("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