diff options
author | Werner Koch <[email protected]> | 2018-04-12 18:36:30 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2018-04-12 18:36:30 +0000 |
commit | b99502274ae5efdf6df0d967900ec3d1e64373d7 (patch) | |
tree | 9cb32e50e31e664986ec6c618b8a247a1c7f3862 /tests/gpg/t-verify.c | |
parent | core: For a failed verification return the sig's fingerprint. (diff) | |
download | gpgme-b99502274ae5efdf6df0d967900ec3d1e64373d7.tar.gz gpgme-b99502274ae5efdf6df0d967900ec3d1e64373d7.zip |
core: Tweak STATUS_FAILURE handling.
* src/op-support.c (_gpgme_parse_failure): Ignore failures with
location "gpg-exit".
* tests/gpg/t-verify.c (main): Adjust for the now working checking of
the second key.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | tests/gpg/t-verify.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/gpg/t-verify.c b/tests/gpg/t-verify.c index ffc41eeb..7c23406f 100644 --- a/tests/gpg/t-verify.c +++ b/tests/gpg/t-verify.c @@ -267,10 +267,12 @@ main (int argc, char *argv[]) err = gpgme_op_verify (ctx, sig, text, NULL); fail_if_err (err); result = gpgme_op_verify_result (ctx); - check_result (result, 2, 0, 0, "A0FF4590BB6122EDEF6E3C542D727CC768697734", + check_result (result, 2, 0, 0, + "A0FF4590BB6122EDEF6E3C542D727CC768697734", GPG_ERR_NO_ERROR, 1); - check_result (result, 2, 1, 0, "36EC2A70C6426EB0FCE5BB4DF91C98F049D4204C", - GPG_ERR_NO_ERROR, 0); + check_result (result, 2, 1, GPGME_SIGSUM_KEY_MISSING, + "36EC2A70C6426EB0FCE5BB4DF91C98F049D4204C", + GPG_ERR_NO_PUBKEY, 0); /* Checking a normal signature. */ |