Skip to content

Commit 30be920

Browse files
finikorgcarlescufi
authored andcommitted
tests: net: socket: Add missing return code check
Add missing check. Signed-off-by: Andrei Emeltchenko <[email protected]>
1 parent 6360f75 commit 30be920

File tree

1 file changed

+1
-0
lines changed
  • tests/net/socket/offload_dispatcher/src

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,7 @@ static void test_tls_native_iface_native(void)
815815

816816
ret = zsock_setsockopt(test_sock, SOL_TLS, TLS_NATIVE,
817817
&tls_native, sizeof(tls_native));
818+
zassert_equal(0, ret, "setsockopt() failed");
818819
zassert_false(test_socket_ctx[OFFLOAD_1].socket_called,
819820
"TLS socket dispatched to wrong iface");
820821
zassert_false(test_socket_ctx[OFFLOAD_2].socket_called,

0 commit comments

Comments
 (0)