]> granicus.if.org Git - strace/commitdiff
tests: use VERBOSE macro in wait4 and wait4-v tests
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 26 Sep 2016 15:20:26 +0000 (15:20 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 26 Sep 2016 15:24:26 +0000 (15:24 +0000)
* tests/wait4-v.c (VERBOSE_RUSAGE): Remove.
(VERBOSE): Define to 1.
* tests/wait4.c (sprint_rusage): Check VERBOSE instead
of VERBOSE_RUSAGE.

tests/wait4-v.c
tests/wait4.c

index 95a3c8b62ffaf04c911984fe2d91000f3be51ac7..8c0c9f596acd5cd39e1e6b96f83fb336fea015a6 100644 (file)
@@ -1,3 +1,3 @@
 /* This file is part of wait4-v strace test. */
-#define VERBOSE_RUSAGE
+#define VERBOSE 1
 #include "wait4.c"
index 981818c77ca84324b812b2e7341a9c0bd7d6c844..2d316aa67874a05ea7e3dbafdc4c7e2fc8e2df6f 100644 (file)
@@ -42,7 +42,7 @@ sprint_rusage(const struct rusage *const ru)
        snprintf(buf, sizeof(buf),
                 "{ru_utime={%lu, %lu}"
                 ", ru_stime={%lu, %lu}"
-#ifdef VERBOSE_RUSAGE
+#if VERBOSE
                 ", ru_maxrss=%lu"
                 ", ru_ixrss=%lu"
                 ", ru_idrss=%lu"
@@ -64,7 +64,7 @@ sprint_rusage(const struct rusage *const ru)
                 , (long) ru->ru_utime.tv_usec
                 , (long) ru->ru_stime.tv_sec
                 , (long) ru->ru_stime.tv_usec
-#ifdef VERBOSE_RUSAGE
+#if VERBOSE
                 , (long) ru->ru_maxrss
                 , (long) ru->ru_ixrss
                 , (long) ru->ru_idrss