Module Name:    src
Committed By:   christos
Date:           Sun Oct 20 17:36:36 UTC 2013

Modified Files:
        src/tests/net/net: t_unix.c

Log Message:
write fail as a proper macro


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/tests/net/net/t_unix.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/net/net/t_unix.c
diff -u src/tests/net/net/t_unix.c:1.9 src/tests/net/net/t_unix.c:1.10
--- src/tests/net/net/t_unix.c:1.9	Thu Oct 17 08:52:09 2013
+++ src/tests/net/net/t_unix.c	Sun Oct 20 13:36:36 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_unix.c,v 1.9 2013/10/17 12:52:09 christos Exp $	*/
+/*	$NetBSD: t_unix.c,v 1.10 2013/10/20 17:36:36 christos Exp $	*/
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #ifdef __RCSID
-__RCSID("$Id: t_unix.c,v 1.9 2013/10/17 12:52:09 christos Exp $");
+__RCSID("$Id: t_unix.c,v 1.10 2013/10/20 17:36:36 christos Exp $");
 #else
 #define getprogname() argv[0]
 #endif
@@ -65,7 +65,11 @@ __RCSID("$Id: t_unix.c,v 1.9 2013/10/17 
 #else
 
 #include <atf-c.h>
-#define FAIL(msg, ...)	ATF_CHECK_MSG(0, msg, ## __VA_ARGS__); goto fail
+#define FAIL(msg, ...)	\
+	do { \
+		ATF_CHECK_MSG(0, msg, ## __VA_ARGS__); \
+		goto fail; \
+	} while (/*CONSTCOND*/0)
 
 #endif
 

Reply via email to