Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/net/net write fail as a proper macro
details: https://anonhg.NetBSD.org/src/rev/a15dc07b8689
branches: trunk
changeset: 790775:a15dc07b8689
user: christos <christos%NetBSD.org@localhost>
date: Sun Oct 20 17:36:36 2013 +0000
description:
write fail as a proper macro
diffstat:
tests/net/net/t_unix.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r 971b4391649e -r a15dc07b8689 tests/net/net/t_unix.c
--- a/tests/net/net/t_unix.c Sun Oct 20 17:27:37 2013 +0000
+++ b/tests/net/net/t_unix.c Sun Oct 20 17:36:36 2013 +0000
@@ -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 @@
#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
Home |
Main Index |
Thread Index |
Old Index