summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2018-12-05 17:16:05 +0100
committerWerner Koch <wk@gnupg.org>2018-12-05 18:29:55 +0100
commit793838fd859afd837df070ee2e75c100e932b220 (patch)
tree7896e39a156ca5051bc1001434e1e2c4a82d6c9d /tests
parent34d6637a34b139fbfafa6c15eaf2fc88158a1c3c (diff)
downloadlibgpg-error-793838fd859afd837df070ee2e75c100e932b220.tar.gz
tests: Check print arguments of t-common functions.
* tests/t-common.h: Include gpgrt.h instead of gpg-error.h. (die, fail, show): Add printf attributes. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/t-common.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/t-common.h b/tests/t-common.h
index e11bca9..e70e04d 100644
--- a/tests/t-common.h
+++ b/tests/t-common.h
@@ -19,7 +19,7 @@
#include <stdarg.h>
-#include "../src/gpg-error.h"
+#include "../src/gpgrt.h"
#ifndef PGM
# error Macro PGM not defined.
@@ -34,6 +34,11 @@ static int debug;
static int errorcount;
+static void die (const char *format, ...) GPGRT_ATTR_NR_PRINTF(1,2);
+static void fail (const char *format, ...) GPGRT_ATTR_PRINTF(1,2);
+static void show (const char *format, ...) GPGRT_ATTR_PRINTF(1,2);
+
+
static void
die (const char *format, ...)
{