Skip to content

Commit 6360f75

Browse files
finikorgcarlescufi
authored andcommitted
tests: net: socket: Fix checking wrong variable
Check return code instead of parameter. Signed-off-by: Andrei Emeltchenko <[email protected]>
1 parent 8dda6b8 commit 6360f75

File tree

1 file changed

+1
-1
lines changed
  • tests/net/socket/af_packet/src

1 file changed

+1
-1
lines changed

tests/net/socket/af_packet/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ static void setblocking(int fd, bool val)
164164
}
165165

166166
res = fcntl(fd, F_SETFL, fl);
167-
zassert_not_equal(fl, -1, "Fail to set fcntl");
167+
zassert_not_equal(res, -1, "Fail to set fcntl");
168168
}
169169

170170
#define SRC_PORT 4240

0 commit comments

Comments
 (0)