diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ChangeLog | 5 | ||||
-rw-r--r-- | tests/gpg/t-import.c | 17 |
2 files changed, 22 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index 3fec7f7a..e7369522 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,8 @@ +2002-01-30 Marcus Brinkmann <[email protected]> + + * gpg/t-import.c (print_op_info): New function. + (main): Use it. + 2002-01-22 Marcus Brinkmann <[email protected]> * gpg/t-signers.c (passphrase_cb): Change type of r_hd to void**. diff --git a/tests/gpg/t-import.c b/tests/gpg/t-import.c index 25ea20f5..7bf21244 100644 --- a/tests/gpg/t-import.c +++ b/tests/gpg/t-import.c @@ -54,6 +54,21 @@ mk_fname ( const char *fname ) return buf; } + +static void +print_op_info (GpgmeCtx c) +{ + char *s = gpgme_get_op_info (c, 0); + + if (!s) + puts ("<!-- no operation info available -->"); + else { + puts (s); + free (s); + } +} + + int main (int argc, char **argv ) { @@ -72,6 +87,7 @@ main (int argc, char **argv ) err = gpgme_op_import (ctx, in ); fail_if_err (err); + print_op_info (ctx); gpgme_data_release (in); @@ -80,6 +96,7 @@ main (int argc, char **argv ) err = gpgme_op_import (ctx, in ); fail_if_err (err); + print_op_info (ctx); gpgme_data_release (in); gpgme_release (ctx); |