]> granicus.if.org Git - strace/commitdiff
tests: add VERBOSE macro
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 21 Sep 2016 00:35:30 +0000 (00:35 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 26 Sep 2016 15:23:18 +0000 (15:23 +0000)
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

index 2599120c57b5eb017e28ecc29cabef4b1171aeaa..340813b8e9fefa354f8090995aabc9dbc52026ee 100644 (file)
 # 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);