linux-kselftest.vger.kernel.org archive mirror
 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-06 15:10 ` Anders Roxell
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: anders.roxell @ 2018-03-06 15:10 UTC (permalink / raw)


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 at 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

--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

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

Thread overview: 12+ 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-06 15:10 ` Anders Roxell
2018-03-07 18:25 ` davem
2018-03-07 18:25   ` David Miller
2018-03-07 19:51   ` shuah
2018-03-07 19:51     ` Shuah Khan
2018-03-07 19:59     ` davem
2018-03-07 19:59       ` David Miller
2018-05-18 22:27 ` [PATCH v2] selftests: " anders.roxell
2018-05-18 22:27   ` Anders Roxell
2018-05-23 10:29   ` daniel
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).