Module Name:    src
Committed By:   mrg
Date:           Mon Feb  4 04:20:13 UTC 2019

Modified Files:
        src/tests/lib/libc/rpc: t_rpc.c

Log Message:
- make ERRX() return a value since it doesn't actually exit in the !TEST case.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/tests/lib/libc/rpc/t_rpc.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/lib/libc/rpc/t_rpc.c
diff -u src/tests/lib/libc/rpc/t_rpc.c:1.10 src/tests/lib/libc/rpc/t_rpc.c:1.11
--- src/tests/lib/libc/rpc/t_rpc.c:1.10	Sat Aug 27 14:36:22 2016
+++ src/tests/lib/libc/rpc/t_rpc.c	Mon Feb  4 04:20:13 2019
@@ -1,7 +1,7 @@
-/*	$NetBSD: t_rpc.c,v 1.10 2016/08/27 14:36:22 christos Exp $	*/
+/*	$NetBSD: t_rpc.c,v 1.11 2019/02/04 04:20:13 mrg Exp $	*/
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_rpc.c,v 1.10 2016/08/27 14:36:22 christos Exp $");
+__RCSID("$NetBSD: t_rpc.c,v 1.11 2019/02/04 04:20:13 mrg Exp $");
 
 #include <sys/types.h>
 #include <sys/socket.h>
@@ -17,7 +17,10 @@ __RCSID("$NetBSD: t_rpc.c,v 1.10 2016/08
 #ifndef TEST
 #include <atf-c.h>
 
-#define ERRX(ev, msg, ...)	ATF_REQUIRE_MSG(0, msg, __VA_ARGS__)
+#define ERRX(ev, msg, ...)	do {			\
+	ATF_REQUIRE_MSG(0, msg, __VA_ARGS__);		\
+	return ev;					\
+} while(/*CONSTCOND*/0)
 
 #define SKIPX(ev, msg, ...)	do {			\
 	atf_tc_skip(msg, __VA_ARGS__);			\

Reply via email to