aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gpg/t-import.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gpg/t-import.c')
-rw-r--r--tests/gpg/t-import.c17
1 files changed, 17 insertions, 0 deletions
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);