aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gpg/t-sig-notation.c
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-06-01 10:50:32 +0000
committerJustus Winter <[email protected]>2016-06-01 10:50:32 +0000
commitc88c9ef384b6f7bda9a61b58f26c2f89ae25f684 (patch)
tree1bfe7d48dd532508572fa86072495695db5934b8 /tests/gpg/t-sig-notation.c
parentcore: Set notation flags for verify. (diff)
downloadgpgme-c88c9ef384b6f7bda9a61b58f26c2f89ae25f684.tar.gz
gpgme-c88c9ef384b6f7bda9a61b58f26c2f89ae25f684.zip
tests: Fix notation tests.
* lang/python/tests/t-sig-notation.py (check_result): Check critical flag. * tests/gpg/t-sig-notation.c (check_result): Likewise. Fixes-commit: 1cacd7d0 Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'tests/gpg/t-sig-notation.c')
-rw-r--r--tests/gpg/t-sig-notation.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/gpg/t-sig-notation.c b/tests/gpg/t-sig-notation.c
index 7345a523..843606a5 100644
--- a/tests/gpg/t-sig-notation.c
+++ b/tests/gpg/t-sig-notation.c
@@ -83,11 +83,11 @@ check_result (gpgme_verify_result_t result)
&& r->value
&& !strcmp (r->value, expected_notations[i].value)
&& r->value_len == strlen (expected_notations[i].value)
- && r->flags
- == (expected_notations[i].flags & ~GPGME_SIG_NOTATION_CRITICAL)
+ && r->flags == expected_notations[i].flags
&& r->human_readable
== !!(r->flags & GPGME_SIG_NOTATION_HUMAN_READABLE)
- && r->critical == 0)
+ && r->critical
+ == !!(r->flags & GPGME_SIG_NOTATION_CRITICAL))
{
expected_notations[i].seen++;
any++;