aboutsummaryrefslogtreecommitdiffstats
path: root/trunk/tests/gpgsm
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/tests/gpgsm')
-rw-r--r--trunk/tests/gpgsm/t-support.h5
-rw-r--r--trunk/tests/gpgsm/t-verify.c6
2 files changed, 7 insertions, 4 deletions
diff --git a/trunk/tests/gpgsm/t-support.h b/trunk/tests/gpgsm/t-support.h
index 3199b056..32a7b19e 100644
--- a/trunk/tests/gpgsm/t-support.h
+++ b/trunk/tests/gpgsm/t-support.h
@@ -30,9 +30,10 @@
{ \
if (err) \
{ \
- fprintf (stderr, "%s:%d: %s: %s\n", \
+ fprintf (stderr, "%s:%d: %s: %s (%d.%d)\n", \
__FILE__, __LINE__, gpg_strsource (err), \
- gpg_strerror (err)); \
+ gpg_strerror (err), \
+ gpg_err_source (err), gpg_err_code (err)); \
exit (1); \
} \
} \
diff --git a/trunk/tests/gpgsm/t-verify.c b/trunk/tests/gpgsm/t-verify.c
index 304fc2c6..6fb32a94 100644
--- a/trunk/tests/gpgsm/t-verify.c
+++ b/trunk/tests/gpgsm/t-verify.c
@@ -57,8 +57,9 @@ check_result (gpgme_verify_result_t result, int summary, char *fpr,
}
if (sig->summary != summary)
{
- fprintf (stderr, "%s:%i: Unexpected signature summary: 0x%x\n",
- __FILE__, __LINE__, sig->summary);
+ fprintf (stderr, "%s:%i: Unexpected signature summary: "
+ "want=0x%x have=0x%x\n",
+ __FILE__, __LINE__, summary, sig->summary);
exit (1);
}
if (strcmp (sig->fpr, fpr))
@@ -119,6 +120,7 @@ main (int argc, char **argv)
fail_if_err (err);
err = gpgme_data_new_from_mem (&sig, test_sig1, strlen (test_sig1), 0);
fail_if_err (err);
+
err = gpgme_op_verify (ctx, sig, text, NULL);
fail_if_err (err);
result = gpgme_op_verify_result (ctx);