summaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorMike Maloney <maloney@google.com>2017-04-25 04:29:11 +0300
committerDavid S. Miller <davem@davemloft.net>2017-04-25 18:56:17 +0300
commit472ecf084a7687347f79720c83881c07407bfd8b (patch)
treea0675df840700f02a016939c4ab960b23838d790 /tools/testing
parent799dbe3e1ce312801cf8755a45bbdd6557560ec4 (diff)
downloadlinux-472ecf084a7687347f79720c83881c07407bfd8b.tar.xz
selftests/net: Fix broken test case in psock_fanout
The error return falue form sock_fanout_open is -1, not zero. One test case was checking for 0 instead of -1. Tested: Built and tested in clean client. Signed-off-by: Mike Maloney <maloney@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing')
-rw-r--r--tools/testing/selftests/net/psock_fanout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/net/psock_fanout.c b/tools/testing/selftests/net/psock_fanout.c
index b4b1d91fcea5..989f917068d1 100644
--- a/tools/testing/selftests/net/psock_fanout.c
+++ b/tools/testing/selftests/net/psock_fanout.c
@@ -305,7 +305,7 @@ static void test_unique_fanout_group_ids(void)
exit(1);
}
- if (sock_fanout_open(PACKET_FANOUT_CPU, first_group_id)) {
+ if (sock_fanout_open(PACKET_FANOUT_CPU, first_group_id) != -1) {
fprintf(stderr, "ERROR: joined group with wrong type.\n");
exit(1);
}