]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: Fix raw socket bind tests with VRF
authorDavid Ahern <dsahern@kernel.org>
Sat, 11 Dec 2021 17:21:08 +0000 (10:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 12 Dec 2021 16:24:27 +0000 (16:24 +0000)
commit2dbe562ceb5e288a4f243b9979593a46c4ef7507
tree4d5659924099f24ca1b41547c7c70f8aa7dc6434
parent628ce36225b93e45326d416cdbe6a8ad95cc6551
selftests: Fix raw socket bind tests with VRF

Commit referenced below added negative socket bind tests for VRF. The
socket binds should fail since the address to bind to is in a VRF yet
the socket is not bound to the VRF or a device within it. Update the
expected return code to check for 1 (bind failure) so the test passes
when the bind fails as expected. Add a 'show_hint' comment to explain
why the bind is expected to fail.

Fixes: a77a40ae320f ("selftests: Add ipv4 address bind tests to fcnal-test")
Reported-by: Li Zhijian <lizhijian@fujitsu.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/fcnal-test.sh