[Pkg-gnupg-commit] [gpgme] 04/103: tests: Make error message more helpful.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Thu Dec 14 18:52:58 UTC 2017
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gpgme.
commit a13e4abe9463579ef23d1acea39a093abfc6528d
Author: Justus Winter <justus at g10code.com>
Date: Tue Mar 28 16:30:03 2017 +0200
tests: Make error message more helpful.
* tests/gpg/t-keylist.c (main): Print number of returned and expected
keys.
Signed-off-by: Justus Winter <justus at g10code.com>
---
tests/gpg/t-keylist.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/gpg/t-keylist.c b/tests/gpg/t-keylist.c
index 6ee023c..8a32f9b 100644
--- a/tests/gpg/t-keylist.c
+++ b/tests/gpg/t-keylist.c
@@ -568,7 +568,8 @@ main (int argc, char **argv)
if (keys[i].fpr)
{
- fprintf (stderr, "Less keys returned than expected\n");
+ fprintf (stderr, "Less keys (%d) returned than expected (%d)\n",
+ i, DIM (keys) - 1);
exit (1);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git
More information about the Pkg-gnupg-commit
mailing list