From: Dmitry V. Levin Date: Mon, 26 Sep 2016 15:16:50 +0000 (+0000) Subject: tests: use VERBOSE macro in mmsg_name and mmsg_name-v tests X-Git-Tag: v4.14~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0c5b09c658ba4aa4e3525ec637878176807276a7;p=strace tests: use VERBOSE macro in mmsg_name and mmsg_name-v tests * tests/mmsg_name-v.c (VERBOSE_MMSGHDR): Remove. (VERBOSE): Define to 1. * tests/mmsg_name.c (test_mmsg_name): Check VERBOSE instead of VERBOSE_MMSGHDR. --- diff --git a/tests/mmsg_name-v.c b/tests/mmsg_name-v.c index 60bd2bc1..c663536d 100644 --- a/tests/mmsg_name-v.c +++ b/tests/mmsg_name-v.c @@ -1,4 +1,4 @@ /* This file is part of mmsg_name-v strace test. */ -#define VERBOSE_MMSGHDR +#define VERBOSE 1 #define TEST_NAME "mmsg_name-v" #include "mmsg_name.c" diff --git a/tests/mmsg_name.c b/tests/mmsg_name.c index f2b624ab..a7a55c55 100644 --- a/tests/mmsg_name.c +++ b/tests/mmsg_name.c @@ -121,7 +121,7 @@ test_mmsg_name(const int send_fd, const int recv_fd) if (i) printf(", "); if (i >= IOV_MAX -# ifndef VERBOSE_MMSGHDR +# if !VERBOSE || i >= DEFAULT_STRLEN # endif ) { @@ -165,7 +165,7 @@ test_mmsg_name(const int send_fd, const int recv_fd) if (i) printf(", "); if (i >= IOV_MAX -#ifndef VERBOSE_MMSGHDR +#if !VERBOSE || i >= DEFAULT_STRLEN #endif ) { @@ -205,7 +205,7 @@ test_mmsg_name(const int send_fd, const int recv_fd) for (i = 0; i < rc; ++i) { if (i) printf(", "); -#ifndef VERBOSE_MMSGHDR +#if !VERBOSE if (i >= DEFAULT_STRLEN) { printf("..."); break;