Revert "tests: net: socket: af_packet: fix resource leak"

This reverts commit a1ae45fecd.

The test is failing now, reverting until properly fixed.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2021-03-12 17:40:09 -05:00
commit 15b9565b37

View file

@ -269,8 +269,6 @@ static void test_raw_packet_sockets(void)
sizeof(data_to_send), sizeof(data_to_send),
"Sent and received buffers do not match"); "Sent and received buffers do not match");
close(sock1);
close(sock2);
close(sock3); close(sock3);
close(sock4); close(sock4);
} }
@ -280,9 +278,6 @@ static void test_packet_sockets(void)
int sock1, sock2; int sock1, sock2;
__test_packet_sockets(&sock1, &sock2); __test_packet_sockets(&sock1, &sock2);
close(sock1);
close(sock2);
} }
static void test_packet_sockets_dgram(void) static void test_packet_sockets_dgram(void)
@ -365,9 +360,6 @@ static void test_packet_sockets_dgram(void)
zassert_equal(ret, sizeof(data_to_send), "Cannot receive all data (%d)", zassert_equal(ret, sizeof(data_to_send), "Cannot receive all data (%d)",
-errno); -errno);
close(sock1);
close(sock2);
} }
void test_main(void) void test_main(void)