Commit 472ecf08 authored by Mike Maloney's avatar Mike Maloney Committed by David S. Miller

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: default avatarMike Maloney <maloney@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 799dbe3e
...@@ -305,7 +305,7 @@ static void test_unique_fanout_group_ids(void) ...@@ -305,7 +305,7 @@ static void test_unique_fanout_group_ids(void)
exit(1); 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"); fprintf(stderr, "ERROR: joined group with wrong type.\n");
exit(1); exit(1);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment