diff options
Diffstat (limited to 'trunk/tests/gpg')
-rw-r--r-- | trunk/tests/gpg/t-keylist-sig.c | 7 | ||||
-rw-r--r-- | trunk/tests/gpg/t-keylist.c | 5 |
2 files changed, 5 insertions, 7 deletions
diff --git a/trunk/tests/gpg/t-keylist-sig.c b/trunk/tests/gpg/t-keylist-sig.c index e3e577bd..b89ba33d 100644 --- a/trunk/tests/gpg/t-keylist-sig.c +++ b/trunk/tests/gpg/t-keylist-sig.c @@ -310,10 +310,9 @@ main (int argc, char **argv) key->subkeys->next->keyid); exit (1); } - if (key->subkeys->next->fpr) + if (!key->subkeys->next->fpr) { - fprintf (stderr, "Secondary key has unexpectedly a fingerprint: %s\n", - key->subkeys->next->fpr); + fprintf (stderr, "Secondary key has unexpectedly no fingerprint\n"); exit (1); } if (key->subkeys->next->expires) @@ -467,7 +466,7 @@ main (int argc, char **argv) after importing the secret key. We disable this test for now. */ #ifdef __GNUC__ -#warning test disabled due to problems with gpg 1.3.4 +#warning test disabled due to problems with gpg 1.3.4 generated key #endif if (key->uids && (!key->uids->next->signatures /*|| key->uids->next->signatures->next*/)) { diff --git a/trunk/tests/gpg/t-keylist.c b/trunk/tests/gpg/t-keylist.c index b7354904..c8c71d0c 100644 --- a/trunk/tests/gpg/t-keylist.c +++ b/trunk/tests/gpg/t-keylist.c @@ -361,10 +361,9 @@ main (int argc, char **argv) key->subkeys->next->keyid, keys[i].sec_keyid ); exit (1); } - if (key->subkeys->next->fpr) + if (!key->subkeys->next->fpr) { - fprintf (stderr, "Secondary key has unexpectedly a fingerprint: %s\n", - key->subkeys->next->fpr); + fprintf (stderr, "Secondary key has unexpectedly no fingerprint\n"); exit (1); } if (key->subkeys->next->expires) |