diff options
author | ngie <ngie@FreeBSD.org> | 2016-01-06 20:43:41 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-01-06 20:43:41 +0000 |
commit | 6631311a86b5a2c574f55cc9e5d82c296407ede6 (patch) | |
tree | 289887f4f65c4d2defa72032e5e60674d4bcfcd7 /tests/sys/kern/unix_seqpacket_test.c | |
parent | 1517961576d154d058761e5c48a00ecea6b25498 (diff) | |
download | FreeBSD-src-6631311a86b5a2c574f55cc9e5d82c296407ede6.zip FreeBSD-src-6631311a86b5a2c574f55cc9e5d82c296407ede6.tar.gz |
MFC r271397:
r271397 (by asomers):
Abort the create_socket test if socket creation fails.
CID: 1232756
Diffstat (limited to 'tests/sys/kern/unix_seqpacket_test.c')
-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 3e767d3..3bce270 100644 --- a/tests/sys/kern/unix_seqpacket_test.c +++ b/tests/sys/kern/unix_seqpacket_test.c @@ -386,7 +386,7 @@ ATF_TC_BODY(create_socket, tc) int s; s = socket(PF_LOCAL, SOCK_SEQPACKET, 0); - ATF_CHECK(s >= 0); + ATF_REQUIRE(s >= 0); } /* Create SEQPACKET sockets using socketpair(2) */ |