From 4dbc32b6e112ce88b9279d54cdb09e838aa28ca6 Mon Sep 17 00:00:00 2001 From: asomers Date: Wed, 10 Sep 2014 14:57:26 +0000 Subject: [PATCH] Abort the create_socket test if socket creation fails. MFC after: 1 week Reported by: Coverity CID: 1232756 --- tests/sys/kern/unix_seqpacket_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sys/kern/unix_seqpacket_test.c b/tests/sys/kern/unix_seqpacket_test.c index c009e6892d8c..ccbacafbd7a1 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); }