1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-03 09:00:21 +00:00

Abort the create_socket test if socket creation fails.

MFC after:	1 week
Reported by:	Coverity
CID:		1232756
This commit is contained in:
Alan Somers 2014-09-10 14:57:26 +00:00
parent 9196891fc9
commit 6addc01e8f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=271397

View File

@ -397,7 +397,7 @@ ATF_TC_BODY(create_socket, tc)
int s;
s = socket(PF_LOCAL, SOCK_SEQPACKET, 0);
ATF_CHECK(s >= 0);
ATF_REQUIRE(s >= 0);
close(s);
}