LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] selftest: net: reuseport_bpf_numa: don't fail if no numa support
@ 2018-03-06 15:10 Anders Roxell
  2018-03-07 18:25 ` David Miller
  2018-05-18 22:27 ` [PATCH v2] selftests: " Anders Roxell
  0 siblings, 2 replies; 6+ messages in thread
From: Anders Roxell @ 2018-03-06 15:10 UTC (permalink / raw)
  To: davem, shuah; +Cc: netdev, linux-kselftest, linux-kernel, Anders Roxell

The reuseport_bpf_numa test case fails there's no numa support.  The
test shouldn't fail if there's no support it should be skipped with a
pass.

Fixes: 3c2c3c16aaf6 ("reuseport, bpf: add test case for bpf_get_numa_node_id")
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
 tools/testing/selftests/net/reuseport_bpf_numa.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tools/testing/selftests/net/reuseport_bpf_numa.c b/tools/testing/selftests/net/reuseport_bpf_numa.c
index 365c32e84189..9245c14165b7 100644
--- a/tools/testing/selftests/net/reuseport_bpf_numa.c
+++ b/tools/testing/selftests/net/reuseport_bpf_numa.c
@@ -228,8 +228,10 @@ int main(void)
 {
 	int *rcv_fd, nodes;
 
-	if (numa_available() < 0)
-		error(1, errno, "no numa api support");
+	if (numa_available() < 0) {
+		fprintf(stderr, "no numa api support");
+		return 0;
+	}
 
 	nodes = numa_max_node() + 1;
 
-- 
2.11.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-05-23 10:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-06 15:10 [PATCH] selftest: net: reuseport_bpf_numa: don't fail if no numa support Anders Roxell
2018-03-07 18:25 ` David Miller
2018-03-07 19:51   ` Shuah Khan
2018-03-07 19:59     ` David Miller
2018-05-18 22:27 ` [PATCH v2] selftests: " Anders Roxell
2018-05-23 10:29   ` Daniel Borkmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).