]> granicus.if.org Git - strace/commitdiff
tests: use VERBOSE macro in mmsg_name and mmsg_name-v tests
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 26 Sep 2016 15:16:50 +0000 (15:16 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 26 Sep 2016 15:24:23 +0000 (15:24 +0000)
* 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.

tests/mmsg_name-v.c
tests/mmsg_name.c

index 60bd2bc10cc86f309bb642a2ccbe960a82af9f8d..c663536d8551f652bfe6693f84fb488f7ccfe157 100644 (file)
@@ -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"
index f2b624aba35af0624e674430897f565a3fcd5a83..a7a55c55a5549bc062bdb614fe9fbb141a4781f3 100644 (file)
@@ -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;