diff options
Diffstat (limited to 'tests/gpgsm/t-keylist.c')
-rw-r--r-- | tests/gpgsm/t-keylist.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/gpgsm/t-keylist.c b/tests/gpgsm/t-keylist.c index cd01aff3..79a61eaf 100644 --- a/tests/gpgsm/t-keylist.c +++ b/tests/gpgsm/t-keylist.c @@ -345,6 +345,13 @@ main (int argc, char **argv) key->uids->next->uid); exit (1); } + if (key->uids->next && strcmp (key->uids->next->uid, keys[i].email)) + { + fprintf (stderr, "Unexpected email in user ID: %s\n", + key->uids->next->uid); + exit (1); + } + gpgme_key_unref (key); |