aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gpg/t-support.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2003-11-19 15:15:33 +0000
committerWerner Koch <[email protected]>2003-11-19 15:15:33 +0000
commit82cb03cc834a911ad626435a1236bfb9a9241bb0 (patch)
treee72490c1327cf2c4b5dd52e244dc7a2796201fcc /tests/gpg/t-support.h
parent* conversion.c (_gpgme_parse_timestamp): New. (diff)
downloadgpgme-82cb03cc834a911ad626435a1236bfb9a9241bb0.tar.gz
gpgme-82cb03cc834a911ad626435a1236bfb9a9241bb0.zip
* gpg/t-support.h (DIM): Added.
* gpg/t-verify.c (check_result): Rewrote test for notations because the order of notaions is not guaranteed. * gpgsm/t-support.h (fail_if_err): Also print the numeric values.
Diffstat (limited to 'tests/gpg/t-support.h')
-rw-r--r--tests/gpg/t-support.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/gpg/t-support.h b/tests/gpg/t-support.h
index 929a5d13..54880557 100644
--- a/tests/gpg/t-support.h
+++ b/tests/gpg/t-support.h
@@ -25,6 +25,10 @@
#include <gpgme.h>
+#ifndef DIM
+#define DIM(v) (sizeof(v)/sizeof((v)[0]))
+#endif
+
#define fail_if_err(err) \
do \
{ \