Module Name:    src
Committed By:   christos
Date:           Sat Aug 20 15:49:08 UTC 2016

Modified Files:
        src/tests: h_macros.h

Log Message:
provide an RL variant that prints an extra argument


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/tests/h_macros.h

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

Modified files:

Index: src/tests/h_macros.h
diff -u src/tests/h_macros.h:1.12 src/tests/h_macros.h:1.13
--- src/tests/h_macros.h:1.12	Thu Aug  4 07:49:07 2016
+++ src/tests/h_macros.h	Sat Aug 20 11:49:08 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: h_macros.h,v 1.12 2016/08/04 11:49:07 jakllsch Exp $ */
+/* $NetBSD: h_macros.h,v 1.13 2016/08/20 15:49:08 christos Exp $ */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -45,6 +45,8 @@
 	ATF_CHECK_MSG((x) != (v), "%s: %s", #x, strerror(errno))
 
 #define RL(x) REQUIRE_LIBC(x, -1)
+#define RLF(x, fmt, arg) \
+	ATF_CHECK_MSG((x) != -1, "%s [" fmt "]: %s", #x, arg, strerror(errno))
 #define RZ(x)								\
 do {									\
 	int RZ_rv = x;							\

Reply via email to