From: Dmitry V. Levin Date: Wed, 21 Sep 2016 00:35:30 +0000 (+0000) Subject: tests: add VERBOSE macro X-Git-Tag: v4.14~59 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=91eb1eddb06d157de50af43e968dbc53acf98652;p=strace tests: add VERBOSE macro Introduce VERBOSE macro (defaults to 0) that is expected to be defined to 1 by code testing "strace -v" output. * tests/tests.h [!VERBOSE] (VERBOSE): New macro. --- diff --git a/tests/tests.h b/tests/tests.h index 2599120c..340813b8 100644 --- a/tests/tests.h +++ b/tests/tests.h @@ -35,6 +35,11 @@ # include # include "gcc_compat.h" +/* Tests of "strace -v" are expected to define VERBOSE to 1. */ +#ifndef VERBOSE +# define VERBOSE 0 +#endif + /* Cached sysconf(_SC_PAGESIZE). */ size_t get_page_size(void);