diff options
author | asomers <asomers@FreeBSD.org> | 2014-09-10 14:57:26 +0000 |
---|---|---|
committer | asomers <asomers@FreeBSD.org> | 2014-09-10 14:57:26 +0000 |
commit | 4dbc32b6e112ce88b9279d54cdb09e838aa28ca6 (patch) | |
tree | ce9d10ff38359b749274745efd25f2811b219fec /tests | |
parent | c8498c6b7f34385ec8ecfd268ca8b59bd7b296e4 (diff) | |
download | FreeBSD-src-4dbc32b6e112ce88b9279d54cdb09e838aa28ca6.zip FreeBSD-src-4dbc32b6e112ce88b9279d54cdb09e838aa28ca6.tar.gz |
Abort the create_socket test if socket creation fails.
MFC after: 1 week
Reported by: Coverity
CID: 1232756
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sys/kern/unix_seqpacket_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/sys/kern/unix_seqpacket_test.c b/tests/sys/kern/unix_seqpacket_test.c index c009e68..ccbacaf 100644 --- a/tests/sys/kern/unix_seqpacket_test.c +++ b/tests/sys/kern/unix_seqpacket_test.c @@ -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); } |