selftests/tls: fix TLS tests with CONFIG_TLS=n
authorJakub Kicinski <jakub.kicinski@netronome.com>
Mon, 29 Jul 2019 23:08:03 +0000 (16:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Jul 2019 22:53:36 +0000 (18:53 -0400)
commite29903c49990376e5e928b20f658cdf7c29bf1eb
treefa4fa144137e020b0c1f020fe2d93f00d7d72a81
parentd8a1de3d5bb881507602bc02e004904828f88711
selftests/tls: fix TLS tests with CONFIG_TLS=n

Build bot reports some recent TLS tests are failing
with CONFIG_TLS=n. Correct the expected return code
and skip TLS installation if not supported.

Tested with CONFIG_TLS=n and CONFIG_TLS=m.

Reported-by: kernel test robot <rong.a.chen@intel.com>
Fixes: cf32526c8842 ("selftests/tls: add a test for ULP but no keys")
Fixes: 65d41fb317c6 ("selftests/tls: add a bidirectional test")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/tls.c