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.
This commit is contained in:
2016-09-21 00:35:30 +00:00
parent 212a444bdc
commit 91eb1eddb0

View File

@ -35,6 +35,11 @@
# include <sys/types.h>
# 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);