Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests provide an RL variant that prints an extra argument



details:   https://anonhg.NetBSD.org/src/rev/c8215919a020
branches:  trunk
changeset: 817447:c8215919a020
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Aug 20 15:49:08 2016 +0000

description:
provide an RL variant that prints an extra argument

diffstat:

 tests/h_macros.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r e29450bbe026 -r c8215919a020 tests/h_macros.h
--- a/tests/h_macros.h  Sat Aug 20 15:48:18 2016 +0000
+++ b/tests/h_macros.h  Sat Aug 20 15:49:08 2016 +0000
@@ -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;                                                  \



Home | Main Index | Thread Index | Old Index