diff options
author | Werner Koch <[email protected]> | 2016-05-03 09:26:06 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-05-03 09:26:06 +0000 |
commit | 33aacc3d4bbd6a82d7e7ceca058970879741b7da (patch) | |
tree | 87d74f35156740dc845f8a5d6bfbd610f490fbf7 /common/t-session-env.c | |
parent | gpg: Emit status lines TOFU_STATS and TOFU_STATS_LONG. (diff) | |
download | gnupg-33aacc3d4bbd6a82d7e7ceca058970879741b7da.tar.gz gnupg-33aacc3d4bbd6a82d7e7ceca058970879741b7da.zip |
tests: Silence output of some tests.
* common/t-exechelp.c (print_open_fds): Silence non-verbose output.
(test_close_all_fds): Ditto.
* common/t-session-env.c (show_stdnames): Indent output.
* g10/test.c (TEST): Silence non-verbose okay output.
(exit_tests): Ditto.
* tools/gpg-zip.in (tar_verbose_opt): Add option --quiet.
* tests/openpgp/gpgtar.test (GPGZIP): Pass option --quiet.
* tests/openpgp/mds.test: Indent MD5 notice.
* tests/openpgp/version.test: Indent --version output.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'common/t-session-env.c')
-rw-r--r-- | common/t-session-env.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/common/t-session-env.c b/common/t-session-env.c index 46c655229..c5c7b0e3b 100644 --- a/common/t-session-env.c +++ b/common/t-session-env.c @@ -55,13 +55,24 @@ show_stdnames (void) { const char *name, *assname; int iterator = 0; + int count; - printf ("Known envvars:"); + printf (" > Known envvars:"); + count = 20; while ((name = session_env_list_stdenvnames (&iterator, &assname))) { + if (count > 60) + { + printf ("\n >"); + count = 7; + } printf ( " %s", name); + count += strlen (name) + 1; if (assname) - printf ( "(%s)", assname); + { + printf ( "(%s)", assname); + count += strlen (assname) + 2; + } } putchar('\n'); } |