Abort the create_socket test if socket creation fails.
MFC after: 1 week Reported by: Coverity CID: 1232756
This commit is contained in:
parent
c8498c6b7f
commit
4dbc32b6e1
@ -397,7 +397,7 @@ ATF_TC_BODY(create_socket, tc)
|
|||||||
int s;
|
int s;
|
||||||
|
|
||||||
s = socket(PF_LOCAL, SOCK_SEQPACKET, 0);
|
s = socket(PF_LOCAL, SOCK_SEQPACKET, 0);
|
||||||
ATF_CHECK(s >= 0);
|
ATF_REQUIRE(s >= 0);
|
||||||
close(s);
|
close(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user