From 91eb1eddb06d157de50af43e968dbc53acf98652 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Wed, 21 Sep 2016 00:35:30 +0000 Subject: [PATCH] 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. --- tests/tests.h | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.50.1