Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Sep 2014 14:57:27 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r271397 - head/tests/sys/kern
Message-ID:  <201409101457.s8AEvRfk007530@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers
Date: Wed Sep 10 14:57:26 2014
New Revision: 271397
URL: http://svnweb.freebsd.org/changeset/base/271397

Log:
  Abort the create_socket test if socket creation fails.
  
  MFC after:	1 week
  Reported by:	Coverity
  CID:		1232756

Modified:
  head/tests/sys/kern/unix_seqpacket_test.c

Modified: head/tests/sys/kern/unix_seqpacket_test.c
==============================================================================
--- head/tests/sys/kern/unix_seqpacket_test.c	Wed Sep 10 14:32:07 2014	(r271396)
+++ head/tests/sys/kern/unix_seqpacket_test.c	Wed Sep 10 14:57:26 2014	(r271397)
@@ -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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409101457.s8AEvRfk007530>